# Anchor for headlines

**URL:** <https://discourse.gohugo.io/t/anchor-for-headlines/13183>\
**Category:** support\
**Created:** [July 26, 2018, 8:18am UTC](https://discourse.gohugo.io/t/anchor-for-headlines/13183 "2018-07-26T08:18:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joerg](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Joerg](https://discourse.gohugo.io/u/Joerg)\
**Post date:** [July 26, 2018, 8:18am UTC](https://discourse.gohugo.io/t/anchor-for-headlines/13183/1 "2018-07-26T08:18:16Z")

</div>

I have a beginner question. It is not hugo specific. I use a fixed header.  
When I click on a link the headline from the link is under the fixed header.  
The header should be 100px below the headline.

Here some lines from my css

```
.anchor {
  position: relative;
}
.anchor h1 h2 h3 {
  position: absolute;
  top: -100px;
}

```

Here some line from the content

```
{{% divmd class="anchor" %}}
# Manuals

---

## Styleguides

is, feugiat a, tellus. Phasellus viverra nulla 
ut metus varius laoreet. Quisque rutrum. Aenean imp

### Coding

is, feugiat a, tellus. Phasellus viverra nulla 
ut metus varius laoreet. Quisque rutrum. Aenean imp
{{% /divmd %}}

Here the shortcode

<div class="{{ with .Get "class"}}{{.}}{{end}}">
  {{ .Inner }}
</div>

```

Here the links

- [Manuals](#manuals)
  - [Coding](#coding)

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [July 26, 2018, 1:12pm UTC](https://discourse.gohugo.io/t/anchor-for-headlines/13183/2 "2018-07-26T13:12:50Z")

</div>

Sorry @Joerg, we don’t answer general HTML/CSS questions here. Near the end of the [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132?u=maiki) post there are some links to places to find web resources. 🙂

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [July 26, 2018, 1:12pm UTC](https://discourse.gohugo.io/t/anchor-for-headlines/13183/3 "2018-07-26T13:12:58Z")

</div>

Archived on July 26, 2018, 1:12pm UTC


