Ver Mensaje Individual
  #11 (permalink)  
Antiguo 01/12/2008, 06:00
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: no puedo quitar margin o padding de <li>

Mira, sin hacks, esta la forma de que te quede igual en ambos navegadores:

Cita:
<!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" lang="es-es">
<head>
<title>Espacio li</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#footer {background-color:#000;
padding:50px;
}
#footer ul {width:280px;
list-style-type:none;
margin: 0;
padding: 0;
}
#footer ul li {line-height: 18px;}
#footer ul li a {border-bottom:1px solid #222;
background-color:#ffffff;
color:#000000;
display:block;
padding:3px 6px;
text-decoration:none;
font-family: Verdana;
font-size: 11px;
width: 100%;
}
#footer ul li a:hover {
background-color:#6C1605;
color:white;
}
</style>
</head>
<body>
<h2>(el espaciado entre los --li-- que necesito quitar solo se ve en IE6)</h2>
<div id="footer">
<ul>
<li><a href="#">Conozca nuestra empresa</a></li>
<li><a href="#">Servicios integrales</a></li>
<li><a href="#">Nuestros trabajos</a></li>
</ul>
</div>
</body>
</html>
__________________
Visita mi nueva web idplus.org