Anchor offset

$navbar-height: 50px; .anchor-offset { display: block; position: relative; top: -$navbar-height; visibility: hidden; }
Offsetting an html anchor (to adjust for fixed header or other content or simply not to be "glued" to the top)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.