Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/07/2011, 12:47
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: Centrar tabla CSS urgent!

Aquí te dejo este código pruebalo.

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>promo_panda</title>
  5. <!-- ImageReady Styles (promo_panda.psd) -->
  6. <style type="text/css">
  7. <!--
  8.  
  9. #Tabla_01 {
  10.    position:relative;
  11.    height: 1200px;
  12.    width: 900px;
  13.    margin: 0px auto 0px auto;
  14.    text-align: center; /* Para resolver problemas de centrado con I.E 5 */
  15. }
  16.  
  17. #panda-01 {
  18.    position:absolute;
  19.    left:0px;
  20.    top:0px;
  21.    width:900px;
  22.    height:83px;
  23.    text-align: left;
  24. }
  25.  
  26. #panda-02 {
  27.    position:absolute;
  28.    left:0px;
  29.    top:83px;
  30.    width:900px;
  31.    height:234px;
  32.    text-align: left;
  33. }
  34.  
  35. #panda-03 {
  36.    position:absolute;
  37.    left:0px;
  38.    top:317px;
  39.    width:900px;
  40.    height:367px;
  41.    text-align: left;
  42. }
  43.  
  44. #panda-04 {
  45.    position:absolute;
  46.    left:0px;
  47.    top:684px;
  48.    width:900px;
  49.    height:304px;
  50.    text-align: left;
  51. }
  52.  
  53. #panda-05 {
  54.    position:absolute;
  55.    left:0px;
  56.    top:988px;
  57.    width:900px;
  58.    height:1px;
  59.    text-align: left;
  60. }
  61.  
  62. -->
  63. <!-- End ImageReady Styles -->
  64. </head>
  65. <body style="background-color:#FFFFFF;">
  66. <!-- ImageReady Slices (promo_panda.psd) -->
  67. <div id="Tabla_01">
  68.     <div id="panda-01">
  69.         <img src="images/panda_01.gif" width="900" height="83" alt="" />
  70.     </div>
  71.     <div id="panda-02">
  72.         <img src="images/panda_02.gif" width="900" height="234" alt="" />
  73.     </div>
  74.     <div id="panda-03">
  75.         <img src="images/panda_03.gif" width="900" height="367" alt="" />
  76.     </div>
  77.     <div id="panda-04">
  78.         <img src="images/panda_04.gif" width="900" height="304" alt="" />
  79.     </div>
  80.     <div id="panda-05">
  81.       <p align="center">Si no puede ver este mail por favor haga <a href="#">click aqu&iacute;</a></p>
  82.       <p>&nbsp;</p>
  83.     </div>
  84. </div>
  85. <!-- End ImageReady Slices -->
  86. </body>
  87. </html>

No olvides colocar

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

o sino tendrás problemas con el bendito Internet Explorer

Saludos
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP

Última edición por andresdzphp; 28/07/2011 a las 13:14 Razón: Resolviendo problema con Internet Explorer