1body { 2 color:#333; 3 background-color:white; 4 margin:20px; 5 padding:0px; 6 font:11px verdana, arial, helvetica, sans-serif; 7} 8 9h1 { 10 margin:0px 0px 15px 0px; 11 padding:0px; 12 font-size:28px; 13 font-weight:900; 14 color:#ccc; 15} 16 17h2 { 18 font:bold 12px/14px verdana, arial, helvetica, sans-serif; 19 margin:0px 0px 5px 0px; 20 padding:0px; 21} 22 23p { 24 font:11px/20px verdana, arial, helvetica, sans-serif; 25 margin:0px 0px 16px 0px; 26 padding:0px; 27} 28 29Content>p {margin:0px;} 30Content>p+p {text-indent:30px;} 31 32a { 33 color:#09c; 34 font-size:11px; 35 font-family:verdana, arial, helvetica, sans-serif; 36 font-weight:600; 37 text-decoration:none; 38} 39 40a:link {color:#09c;} 41a:visited {color:#07a;} 42a:hover {background-color:#eee;} 43 44/* All the content boxes belong to the content class. */ 45.content { 46 position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */ 47 width:auto; 48 min-width:120px; 49 margin:0px 210px 20px 170px; 50 border:1px solid black; 51 background-color:white; 52 padding:10px; 53 z-index:3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */ 54} 55 56#navAlpha { 57 position:absolute; 58 width:150px; 59 top:20px; 60 left:20px; 61 border:1px dashed black; 62 background-color:#eee; 63 padding:10px; 64 z-index:2; 65 66/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity. 67Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it. 68IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style 69declaration. The incorrect IE5/Win value is above, while the correct value is 70below. See http://glish.com/css/hacks.asp for details. */ 71 voice-family: "\"}\""; 72 voice-family:inherit; 73 width:128px; 74} 75 76/* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct 77length values to user agents that exhibit the parsing error exploited above yet get 78the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include 79a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */ 80body>#navAlpha {width:128px;} 81 82#navBeta { 83 position:absolute; 84 width:190px; 85 top:20px; 86 right:20px; 87 border:1px dashed black; 88 background-color:#eee; 89 padding:10px; 90 z-index:1; 91/* Again, the ugly brilliant hack. */ 92 voice-family: "\"}\""; 93 voice-family:inherit; 94 width:168px; 95} 96 97/* Again, "be nice to Opera 5". */ 98body>#navBeta {width:168px;} 99 100#navAlpha ul{ 101 border-width:1px 1px 0 1px; 102 border-style:solid; 103 border-color:#eee; 104 padding:0; 105 margin:0; 106} 107 108#navAlpha li{ 109 border-bottom:1px solid #d6e1ec; 110 list-style:none; 111 margin:0; 112} 113 114#navAlpha a{ 115 display:block; 116 text-decoration:none; 117 color:#4D8CBF; 118 background-color:#fff; 119 padding-left:1em; 120} 121 122#navAlpha a:hover{ 123 background-color:#E4E4E4; 124 color:#000; 125} 126