Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/02/2012, 09:19
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Padding fantasma (imagen ilustrativa en el post)

No veo que en ninguna parte hayas reseteado tu <ul>

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10.  
  11. div {
  12. border: solid 1px #000;
  13. overflow: auto;
  14. }
  15.  
  16. /* esto corregiría el padding */
  17. div ul {
  18. padding: 0;
  19. margin: 0;
  20. }
  21.  
  22. div ul li
  23. {
  24.    height: 32px;
  25.    width: 126px;
  26.    font-family: Arial;
  27.    list-style:none;
  28.    float:right;
  29.    color:#FFF;
  30.    text-decoration: none;
  31.    margin-left: 1%;
  32.    margin-right: 1%;
  33.    border: solid red 1px;
  34. }
  35.  
  36.  
  37. /*]]>*/
  38. </head>
  39. <div>
  40. <ul>
  41. <li>ssss</li>
  42. <li>zzzz</li>
  43. </ul>
  44. </div>
  45. </body>
  46. </html>
Agregué un borde al div solo para visualizar el problema
SAludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.