Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/09/2010, 08:09
Avatar de asm_mripZ
asm_mripZ
 
Fecha de Ingreso: febrero-2002
Ubicación: Panamá
Mensajes: 212
Antigüedad: 22 años, 1 mes
Puntos: 0
Respuesta: Problema para centrar div en IE8

Hola que tal !!, tengo el mismo problema tengo todo alineado y nada que logro arreglarlo, tengo solo como 1 px movido el header a la izquierda respecto al body (div#container).
Igual funciona bien en firefox, ie9, ie7, ie6, safari, chrome. pero no en el ie8 .

Código CSS:
Ver original
  1. div#header {
  2. background-image:url(images/header/header-bckgr_05.png);
  3. background-position:bottom;
  4. background-repeat:no-repeat;
  5. height:108px;
  6. margin:0 auto;
  7. width:61.625em; /*986px*/
  8. }
  9.  
  10. div#wrapper{
  11. width:100%;
  12. height:100%;
  13. }
  14.  
  15. div#container {    
  16. background-image:url('../images/main-bckgr.png');
  17. background-repeat:repeat-y;
  18. height:100%;
  19. margin:0 auto;
  20. width:61.625em; /*986px*/
  21. }
  22.  
  23. div#contentbox {
  24. margin:0 auto;
  25. width:54.063em; /*865px*/
  26. height:100%;
  27. }
  28.  
  29. div#content {
  30. float:left;
  31. width:34.063em; /*545px*/
  32.  
  33. }
  34.  
  35. div.sidebar {
  36. float:right;
  37. width:20em; /*320px*/
  38. }

Mi estructura:
Código HTML:
Ver original
  1. <div id="wrapper">
  2.       <div id="header">Logo ---- [Menu]</div>
  3.       <div id="container">
  4.             <div id="contentbox">
  5.                   <div id="content">Content Column</div>
  6.                    <div id="sidebar">Right Menu</div>
  7.             </div><!--#contentbox-->
  8.       </div><!--#container-->
  9.      <div id="footer">footer here!</div>
  10. </div><!--#wrapper-->

Gracias de antemano, saludos!!!
__________________
-- May the LinuxForce be with you --