/ Published in: CSS
CSS - Navigation - Sub Nav
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
nav.sub { position:relative; overflow:hidden; height:100%; margin-bottom:20px; } nav.sub p.heading { font-size:16px; font-size:1.6rem; } nav.sub ul li { display:inline; } nav.sub ul li a { display:block; padding:10px 15px; } nav.sub ul li.last a { border:0 none; } nav.sub ul li a.active { position:relative; bottom:0; font-weight:bold; } nav.sub ul li a span { display:block; } nav.sub ul li.has_child a span { } nav.sub ul li ul { font-size:12px; font-size:1.2rem; border:0 none; padding:0; } nav.sub ul li.last ul { border-bottom:0 none; } nav.sub ul li ul li a { border:0 none; background:none; } nav.sub ul li ul li a.active:hover { background:none; } nav.sub ul li ul li a span { padding:0!important; background:none!important; }