Evil CSS hackery to prevent link targets from being under the navbar

http://stackoverflow.com/questions/9047703/fixed-position-navbar-obscures-anchors
This commit is contained in:
Eelco Dolstra
2013-02-20 13:56:41 +01:00
parent f550f1a1de
commit c2e5bec1e1
4 changed files with 21 additions and 18 deletions

View File

@ -1,6 +1,5 @@
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
padding-bottom: 0px; /* 60px to make the container go all the way to the bottom of the topbar */
padding-top: 60px;
}
.logo {
@ -25,7 +24,13 @@ table.productList {
border-spacing: 0em 1em;
}
span.dep-tree-line:target {
background-color: #f8f8e0;
span:target > span.dep-tree-line {
font-style: italic;
font-weight: bold;
}
:target {
padding-top: 40px;
margin-top: -40px;
display: inline-block; /* required for webkit browsers */
}