Skip to content

Commit

Permalink
tip on non-fixed header
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Sep 28, 2024
1 parent ef52e7f commit f63c46e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ An HTML fragment to add to the head. Defaults to the empty string. If specified

An HTML fragment to add to the header. Defaults to the empty string. If specified as a function, receives an object with the page’s `title`, (front-matter) `data`, and `path`, and must return a string.

<div class="tip">

By default, the header is fixed to the top of the window. To instead have the header scroll with the content, add the following to a custom stylesheet:

```css run=false
#observablehq-header {
position: absolute;
}
```

</div>

## footer

An HTML fragment to add to the footer. Defaults to “Built with Observable.” If specified as a function, receives an object with the page’s `title`, (front-matter) `data`, and `path`, and must return a string.
Expand Down

0 comments on commit f63c46e

Please sign in to comment.