Body { Font: normal. 8em/1.5em Arial, Helvetica, sans-serif; Background: # ebeb; Width: 900px; Margin: 100px auto; Color: #666; } A { Color: #333; } # Nav { Margin: 0; Padding: 7px 6px 0; Background: # 7d7d7d url (img/gradient.png) repeat-x 0-110px; Line-height: 100%; Border-radius: 2em; -Webkit-border-radius: 2em; -Moz-border-radius: 2em; -Webkit-box-shadow: 0 1px 3px rgba (0, 0,. 4 ); -Moz-box-shadow: 0 1px 3px rgba (0, 0,. 4 ); } # Nav li { Margin: 0 5px; Padding: 0 0 8px; Float: left; Position: relative; List-style: none; } /* Main level link */ # Nav { Font-weight: bold; Color: # e7e5e5; Text-decoration: none; Display: block; Padding: 8px 20px; Margin: 0;
-Webkit-border-radius: 1.6em; -Moz-border-radius: 1.6em; Text-shadow: 0 1px 1px rgba (0, 0, 0,. 3 ); } # Nav a: hover { Background: #000; Color: # fff; } /* Main level link hover */ # Nav. current a, # nav li: hover> { Background: #666 url (img/gradient.png) repeat-x 0-40px; Color: #444; Border-top: solid 1px # f8f8f8; -Webkit-box-shadow: 0 1px 1px rgba (0, 0,. 2 ); -Moz-box-shadow: 0 1px 1px rgba (0, 0,. 2 ); Box-shadow: 0 1px 1px rgba (0, 0, 0,. 2 ); Text-shadow: 0 1px 0 rgba (255,255,255, 1 ); } /* Sub levels link hover */ # Nav ul li: hover a, # nav li: hover li { Background: none; Border: none; Color: #666; -Webkit-box-shadow: none; -Moz-box-shadow: none; } # Nav ul a: hover { Background: # 0078ff url (img/gradient.png) repeat-x 0-100px! Important; Color: # fff! Important; -Webkit-border-radius: 0; -Moz-border-radius: 0; Text-shadow: 0 1px 1px rgba (0, 0, 0,. 1 ); } /* Dropdown */ # Nav li: hover> ul { Display: block; } /* Level 2 list */ # Nav ul { Display: none; Margin: 0; Padding: 0; Width: 185px; Position: absolute; Top: 35px; Left: 0; Background: # ddd url (img/gradient.png) repeat-x 0 0; Border: solid 1px # b4b4b4; -Webkit-border-radius: 10px; -Moz-border-radius: 10px; Border-radius: 10px; -Webkit-box-shadow: 0 1px 3px rgba (0, 0,. 3 ); -Moz-box-shadow: 0 1px 3px rgba (0, 0,. 3 ); Box-shadow: 0 1px 3px rgba (0, 0, 0,. 3 ); } # Nav ul li { Float: none; Margin: 0; Padding: 0; } # Nav ul { Font-weight: normal; Text-shadow: 0 1px 0 # fff; } /* Level 3 + list */ # Nav ul { Left: 181px; Top:-3px; } /* Rounded corners of first and last link */ # Nav ul li: first-child> { -Webkit-border-top-left-radius: 9px; -Moz-border-radius-topleft: 9px; -Webkit-border-top-right-radius: 9px; -Moz-border-radius-topright: 9px; } # Nav ul li: last-child> { -Webkit-border-bottom-left-radius: 9px; -Moz-border-radius-bottomleft: 9px; -Webkit-border-bottom-right-radius: 9px; -Moz-border-radius-bottomright: 9px; } /* Clearfix */ # Nav: after { Content :"."; Display: block; Clear: both; Visibility: hidden; Line-height: 0; Height: 0; } # Nav { Display: inline-block; } Html [xmlns] # nav { Display: block; } * Html # nav { Height: 1%; } |