Skip to content

Commit f63c46e

Browse files
committed
tip on non-fixed header
1 parent ef52e7f commit f63c46e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/config.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@ An HTML fragment to add to the head. Defaults to the empty string. If specified
171171

172172
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.
173173

174+
<div class="tip">
175+
176+
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:
177+
178+
```css run=false
179+
#observablehq-header {
180+
position: absolute;
181+
}
182+
```
183+
184+
</div>
185+
174186
## footer
175187

176188
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.

0 commit comments

Comments
 (0)