Below is a snippet of code that I got from a site. For me it looks wrong as I think the bottom padding of 20px has been left out.
This line:
height:33px; /* 14px + 17px + 2px = 33px */
Should it not be:
height:53px; /* 14px + 17px + 20px + 2px = 53px */
#Header {
margin:50px 0px 10px 0px;
padding:17px 0px 0px 20px;
/* For IE5/Win's benefit height = [correct height] + [top padding] + [top and bottom border widths] */
height:33px; /* 14px + 17px + 2px = 33px */
border-style:solid;
border-color:black;
border-width:1px 0px; /* top and bottom borders: 1px; left and right borders: 0px */
line-height:11px;
background-color:#eee;
/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
declaration. The incorrect IE5/Win value is above, while the correct value is
below. See for details. */
voice-family: "\"}\"";
voice-family:inherit;
height:14px; /* the correct height */
}
This line:
height:33px; /* 14px + 17px + 2px = 33px */
Should it not be:
height:53px; /* 14px + 17px + 20px + 2px = 53px */
#Header {
margin:50px 0px 10px 0px;
padding:17px 0px 0px 20px;
/* For IE5/Win's benefit height = [correct height] + [top padding] + [top and bottom border widths] */
height:33px; /* 14px + 17px + 2px = 33px */
border-style:solid;
border-color:black;
border-width:1px 0px; /* top and bottom borders: 1px; left and right borders: 0px */
line-height:11px;
background-color:#eee;
/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
declaration. The incorrect IE5/Win value is above, while the correct value is
below. See for details. */
voice-family: "\"}\"";
voice-family:inherit;
height:14px; /* the correct height */
}