Thread: css issues
View Single Post
Old 12-16-2005, 02:50 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 744
DJMaze is on a distinguished road
Code:
#Header {
	color:#336600;
	font-size:28px;
	margin: 0px 0px 10px 0px;
	padding:16px 0px 0px 10px;
	/* For IE5/Win's benefit height = [correct height] + [top padding] + [top and bottom border widths] */
	height:50px; /* 14px + 17px + 2px = 33px */
	border-style:solid;
	border-color:black;
	border-width:2px 0px; /* top and bottom borders: 2px; left and right borders: 0px */
	line-height:11px;
	background-color:#eee;
	/* background-image: url(../images/Sable1.jpg);
	background-repeat: no-repeat; */
/* 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 http://glish.com/css/hacks.asp for details. */
	voice-family: "\"}\"";
	voice-family:inherit;
	height:50px; /* the correct height */
}
/* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct 
length values to user agents that exhibit the parsing error exploited above yet get 
the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */
body>#Header {height:50px;}
DJMaze is online now   Reply With Quote