Código HTML:
<html> <head> <style> /* Clearfix */ .clear:before, .clear:after { content: " "; display: table; } .clear:after { clear: both; } .clear { *zoom: 1; } a#pull { display: none; } nav { height: 40px; width: 100%; background: #3359BC; position: relative; border-bottom: solid 0px #DDD; } nav ul { padding: 0; margin: 0 auto; width: 700px; height: 40px; } nav li { display: inline; float: left; } nav a { color: #FFF; display: inline-block; width: 100px; text-align: center; line-height: 40px; } nav li a { border-right: 0px solid #576979; } nav li:last-child a { border-right: 0; } nav a:hover, nav a:active { background-color: #5475C9; } @media only screen and (max-width : 500px) { nav { border-bottom: 0; height: auto; } nav ul { display: none; height: auto; width: 100%; } nav li { width: 50%; float: left; position: relative; } nav a { text-align: left; width: 100%; text-indent: 25px; } nav a#pull { display: block; background-color: #3359BC; width: 100%; position: relative; } nav a#pull:after { content:""; background: url('img/nav-icon.png') no-repeat; width: 30px; height: 30px; display: inline-block; position: absolute; right: 15px; top: 10px; } } </style> </head> <body> <nav> <a id="pull" href="#">Menu</a> <ul> <li><a href="#" title="">Home</a></li> <li><a href="#" title="">Sociedad</a></li> <li><a href="#" title="">Mundo</a></li> <li><a href="#" title="">Economia</a></li> <li><a href="#" title="">Politica</a></li> <li><a href="#" title="">Tecno</a></li> <li><a href="#" title="">Deportes</a></li> </li><br clear="all" /> </ul> </nav> </body> </html>
Gracias.