Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/05/2009, 12:51
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 6 meses
Puntos: 40
Respuesta: div se pega a la derecha

no son necesarias las posiciones absolutas y menos los hacks que declaras siendo que son los mismo el original y el hack, pero bueno, pienso que sería de esta manera:

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=iso-8859-1" />
  4. <title>Documento sin t&iacute;tulo</title>
  5. <style type="text/css">
  6. #wrapper{
  7.     margin:70px auto 0 auto;
  8.     width: 940px;
  9. }
  10.  
  11. #izquierda{
  12.     float: left;
  13.     border: 1px solid #666;
  14.     width: 230px;
  15.     height: 812px;
  16. }
  17.  
  18. #centro{
  19.     float: left;
  20.     width: 470px;
  21. }
  22.  
  23. #centro .up{
  24.     border: 1px solid #666;
  25.     height: 260px;
  26. }
  27.  
  28. #centro .down{
  29.     margin-top: 12px;
  30.     border: 1px solid #666;
  31.     height: 540px;
  32. }
  33.  
  34. #derecha{
  35.     float: left;
  36.     border: 1px solid #666;
  37.     width: 230px;
  38.     height: 812px;
  39. }
  40.  
  41. #plantilla{
  42.     width: 800px;
  43.     margin-left: auto;
  44.     margin-right: auto;
  45. }
  46.  
  47. #plantilla .arriba{
  48.     border: 1px solid #666;
  49.     height: 150px;
  50. }
  51. #plantilla .abajo{
  52.     border: 1px solid #666;
  53.     margin-top: 12px;
  54.     padding: 20px 20px 0px;
  55. }
  56. </head>
  57.  
  58. <div id="wrapper">
  59.     <div id="izquierda">asdfasdf</div>
  60.     <div id="centro">fasdfasdf</div>
  61.     <div id="derecha">asdasdf</div>
  62. </div>
  63. </body>
  64. </html>
__________________
WFC
codigo82