Ademas no se porque deja un margen a la izquierda en el menu. ESto pasa en todos los navegadores que he probado.
Yo no logro solucionar ninguna de las 2. A ver que conseguis vosotros. muchas gracias de antemano.
Este es el codigo:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="ContentType" content="text/html; charset=iso-8859-1" /> <title>EJEMPLO MENU</title> <style type="text/css"> body {margin:0;padding:0;} #contenedor{ width:760px; height:auto; margin: 0px auto; } #cabecera{ clear:both; width:100%; height:100px; background:#f63; } #menu{ clear:both; width:100%; height:100%; } #pie{ clear:both; width:100%; height:100px; background:#f63; } #menu ul { clear: both; float: left; width: 100%; list-style: none; } #menu ul li { text-align:center; display: inline; float: left; width:20%; font: normal .8em Arial, Helvetica, sans-serif; background: #fff; } /* Enlaces */ #menu ul li a:link, ul li a:visited { padding: .5em; display:block; text-decoration: none; color: #000; background: #666; } #menu ul li a:hover { background: #000; color:#fff; } ul li a:active {text-decoration:none; color:#000;} </style> </head> <body> <div id="contenedor"> <div id="cabecera">Cabecera_ejemplo</div> <div id="menu"> <ul> <li><a href="#" title="Enlace genérico">:: Inicio ::</a></li> <li><a href="#" title="Enlace genérico">:: Portafolio ::</a></li> <li><a href="#" title="Enlace genérico">:: Contacto ::</a></li> <li><a href="#" title="Enlace genérico">:: Enlaces ::</a></li> <li><a href="#" title="Enlace genérico">:: Sobre mí ::</a></li> </ul> </div> <div id="pie">Pie_ejemplo</div> </div> </body> </html>