Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/06/2012, 11:44
towi62
 
Fecha de Ingreso: abril-2005
Mensajes: 253
Antigüedad: 19 años
Puntos: 0
Respuesta: dar margenes a div

Listo amigos he solucionado el problema aqui pongo el codigo, muchas grasias a todos aquellos que me prestaron atencion


Código CSS:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
  3. <head>
  4. <title>Interferencias by Rafael</title>
  5.  
  6. <style type="text/css">
  7. #divPadre {
  8.  
  9.     background-color:blue;
  10.         overflow: hidden;
  11.         padding:25px;
  12.         position: absolute;
  13.         top: 100px;
  14.         left: 200px;
  15.          width: 400px;
  16.          height: 100px;">
  17.  
  18.  
  19. }
  20.  
  21. #cajon1 {
  22.    float:left;
  23. background:#CC6600;
  24.  
  25. }
  26. #cajon3 {
  27.   float:left;
  28.    clear:both;
  29.     margin:0px auto;
  30. background:#CC6600;
  31. }
  32.  
  33.  
  34. </style>
  35. </head>
  36.     <body>
  37.         <div id="divPadre">
  38.         <div id="cajon1">
  39. DonMango
  40. </div>
  41. <div id="cajon3">
  42. Registro de usuarios
  43. </div>
  44.         </div>
  45.     </body>
  46. </html>
__________________
:cool: aprendiz :cool: