I have a topbar with position:fixed which also contains anchor links (<a href="#someid">jdjd</a>).
The problem is that the target is placed in the top of the viewport (behind the fixed topbar).
how can I fix so the the browser scrolls so that the target is shown just below the topbar?
Not sure why you’re being downvoted, it seems like an honest a good question.
I’d put a
margin-topon the viewport, equal to the height of the fixed topbar.http://jsfiddle.net/justiceerolin/KfMLJ/ as an example