1
I have a fixed header at the top of the page, which calls a index, this index allows you to navigate the text using anchor, the point is that when I click on an item of the index, navigate to the chosen item, but the header is over the item, how can I resolve?
for the header:
<style>
html { padding: 0; }
body { padding-top: 40px; /* header height */ }
#header { position: fixed; top: 0; left: 0; width: 100%; height: 40px;}
</style>
But keep the fixed header above the content?
– hugocsl
The fixed header is just the situation of the question, the answer solves the problem even without having it, leaving the example cleaner. But as it’s easier to show than to explain, I edited the answer with the fixed header.
– Rafael Tavares
@Rafaeltavares, Perfect, Thank you
– Miguel Silva