Geologist1724
01-04-2009, 04:20 PM
I'm trying to use the DD Blue Blocks vertical menu:
http://www.dynamicdrive.com/style/csslibrary/item/dd-blue-blocks-menu/
Coding the width for this menu makes no sense to me. Specifically:
#ddblueblockmenu li a{
display: block;
padding: 3px 0;
padding-left: 9px;
width: 169px; /*185px minus all left/right paddings and margins*/
Clearly there is padding somewhere in this menu I don't understand. As far as I can tell the only left or right padding is "left: 9px" and margins are 0. 185 minus 9 is not 169.
Similarly, I've read all of the stuff about hacking the box model for IE, but I can't figure out where these widths come from:
* html #ddblueblockmenu li a{ /*IE only */
width: 187px; /*IE 5*/
w\idth: 169px; /*185px minus all left/right paddings and margins*/
}
Why 187px and 169px?:confused:
http://www.dynamicdrive.com/style/csslibrary/item/dd-blue-blocks-menu/
Coding the width for this menu makes no sense to me. Specifically:
#ddblueblockmenu li a{
display: block;
padding: 3px 0;
padding-left: 9px;
width: 169px; /*185px minus all left/right paddings and margins*/
Clearly there is padding somewhere in this menu I don't understand. As far as I can tell the only left or right padding is "left: 9px" and margins are 0. 185 minus 9 is not 169.
Similarly, I've read all of the stuff about hacking the box model for IE, but I can't figure out where these widths come from:
* html #ddblueblockmenu li a{ /*IE only */
width: 187px; /*IE 5*/
w\idth: 169px; /*185px minus all left/right paddings and margins*/
}
Why 187px and 169px?:confused: