Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/08/2009, 07:57
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: Duda con div e imagen

no estoy seguro, pero pruebalo 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=utf-8" />
  4. <title>Untitled Document</title>
  5. <style type="text/css">
  6. h1{
  7.     background-image: url("../Titulo.png");
  8.     background-repeat:repeat-x;
  9.     color:#e6e6e7; 
  10.     padding:3px;
  11.     font-size:24px;
  12.     margin:0;
  13.     text-align:center;
  14.     line-height:normal;
  15. }
  16.  
  17. #barra {
  18.     border: #0f3567 solid 2px;
  19.     width: 500px;
  20.     margin:15px auto;
  21. }
  22.  
  23. #con_imagen{
  24.     width: 550px;
  25.     height: auto;      
  26.     border: #ffffff solid 1px;
  27.     margin: auto 75px;
  28.     overflow:auto;
  29. }
  30. </head>
  31.  
  32. <div id="con_imagen">
  33.    
  34. <div id="barra">
  35. <img src="Imagenes/fondo.jpg" width="50" height="60" style="float:left; position:relative; left:-15px; top:-15px" />
  36.         <h1>Titulo Principal Con Imagen</h1>
  37.   </div>
  38. </div>
  39. </body>
  40. </html>

sugiero hacerlo en un archivo nuevo para evitar complicaciones.
__________________
WFC
codigo82