HTML and CSS Reference
In-Depth Information
margin:0 0 .5em .5em;
padding:0;
font-size:80%;
}
ul.subnav a {
display:block;
background:#ddd;
margin-bottom:1px;
padding:.5em;
}
ul.subnav a:hover {
background:#ccc;
margin-bottom:1px;
}
After viewing our changes in Firefox, everything looks perfect (Figure 14-19), but when we
take a look in IE 6, we find the whitespace bug has struck (Figure 14-20).
Figure 14-19. Firefox displays the subnav correctly on the first try.
Search WWH ::




Custom Search