/ Published in: CSS
I tried a menu bar with html5 and css3. Please give me some advice for more advance.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
a { text-decoration: none; } nav { background-color: #A3A5A8; border: 1px solid #FFF; border-radius: 6px; display: block; -moz-border-radius: 6px; -webkit-border-radius: 6px; -moz-box-shadow: 0 0 14px #123; -webkit-box-shadow: 0 0 14px #123; box-shadow: 0 0 14px #123; font-size: 15px; margin-bottom: 10px; padding: 8px 2px; width: 450px; } nav a { padding: 5px 10px; color: #141414; } nav .active, nav a:hover { background-color: #000; border-radius: 6px; color: #FFF; -moz-border-radius: 6px; -webkit-border-radius: 6px; }