Fixed top navigation element and anchors
Posted
by elmarco
on Stack Overflow
See other posts from Stack Overflow
or by elmarco
Published on 2010-05-11T16:29:52Z
Indexed on
2010/05/13
9:04 UTC
Read the original article
Hit count: 316
With the following CSS, anchor links end up being hidden by the navigation bar.
What solution would you proposed to have the anchor link text being shown just under it?
/* style and size the navigation bar */
table.navigation#top
{
position: fixed;
margin-top: 0;
margin-bottom: 0;
top: 0;
left: 0;
z-index: 10;
}
thanks
© Stack Overflow or respective owner