Great answer from @Oleg,
For people like me who want to reproduce responsive .subnav behavior
Here is the css code (without colors, borders and effects)
body { padding-top: 90px; } @media (max-width: 980px) { body { padding-top: 0; } } .subnav { width: 100%; } @media (max-width: 768px) { .subnav { position: static; top: auto; z-index: auto; width: auto; height: auto; } .subnav .nav > li { float: none; } } @media (min-width: 980px) { .subnav-fixed { position: fixed; top: 40px; left: 0; right: 0; z-index: 1020; } .subnav-fixed .nav { width: 938px; margin: 0 auto; } } @media (min-width: 1210px) { .subnav-fixed .nav { width: 1168px; } }
If you want to clone a menu style (including colors, borders and effects)
http://jsfiddle.net/baptme/ydY6W/
baptme Jun 25 '12 at 16:23 2012-06-25 16:23
source share