Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/06/2009, 14:35
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 11 meses
Puntos: 539
Respuesta: Alinear texto a la izquierda de imagen

Hola Vendetta
Veo un exceso de divs. Sin ver el resto de tu código casi, casi que me atrevo a usar el término "divitis"

Quizás puedas cambiar el enfoque, y crear para ello una lista (podría ser de definición en este caso):
Código html:
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. <title>play sobre imagen</title>
  4. <style type="text/css">
  5. * {margin:0; padding:0; position: relative;}
  6. body {background: #e5e5e5;}
  7.   #noticias {
  8.     margin: 0 auto;
  9.     padding: 10px;
  10.     width: 200px;
  11.     background: #444;
  12.     overflow: auto;  
  13.   }
  14.   #noticias h4 {
  15.     background: #900;
  16.     color:#fff;
  17.     display:block;
  18.     font-size:1.2em;
  19.     padding:5px 0;
  20.     text-align:center;
  21.     text-transform:uppercase;
  22.     width: 100%;
  23.     }
  24.   #noticias img {
  25.   float:left;
  26.   margin: 0 5px 5px -6px;
  27.   clear: left;
  28.   }
  29.   #noticias dl {
  30.     display: block;
  31.    }
  32.   #noticias dt {  
  33.     font-size: 1em;
  34.     font-weight: bold;
  35.     text-align: center;
  36.     color: #d07000;
  37.     letter-spacing:0.1em;
  38.     line-height: 1.4em;
  39.     margin-top: 5px;
  40.     clear:both;
  41.     }
  42. #noticias dd {
  43.     color:#6F6F6F;
  44.     font-size:.8em;
  45.     text-align:justify;
  46.     }
  47. </head>
  48. <div id="noticias">
  49. <h4>noticias</h4>
  50. <dl>
  51. <dt>Noticia 1</dt>
  52. <dd><img src="http://www.squashsantiago.com/images/noticia.jpg" title="" alt=""  />El desarrollo de la priemra noticia va aquí, puede ser más o menos larga. Todo lo que necesites añadir hasta que sobrepase la altura de la imagen y se coloque debajo
  53. </dd>
  54. <dt>Noticia 2</dt>
  55. <dd>
  56. <img src="http://www.squashsantiago.com/images/noticia.jpg" title="" alt="" />Un texto pequeñito junto a la imagen
  57. </dd>
  58. </dl>
  59. </div>
  60. </body>
  61. </html>

Modifica para adaptar a tus necesidades.

Un saludo
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++