Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/11/2009, 08:15
Avatar de destor77
destor77
 
Fecha de Ingreso: noviembre-2004
Ubicación: Gálvez, Santa Fe, Argentina
Mensajes: 2.654
Antigüedad: 19 años, 5 meses
Puntos: 43
alinear imagen y texto

hola:
estoy armando un boletin html y quiero que la imagen de la noticia este a la izquierda y el texto a la derecha, eso lo logre, pero el texto si es muy largo envuelve a la imagen, hay forma de evitar esto? les dejo el codigo para que lo vean:
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ítulo</title>
  5. <style type="text/css">
  6.     body, html {
  7.         background: #fff;
  8.         width: 100%;
  9.         height: 100%;
  10.         margin: 0px;
  11.         padding: 0px;
  12.         font-family: Verdana, Geneva, sans-serif;
  13.         font-size: 100%;
  14.         color: #000000;
  15.     }
  16.    
  17.     .wraper {
  18.         margin: 0px auto; /* centrar con firefox */
  19.         /* centra las capas con internet explorer */
  20.         text-align: left;
  21.         background-color: #ba5209;
  22.         width: 600px;
  23.     }
  24.    
  25.     .wraper .cabecera {
  26.         background-image: url(cabecera-newsletter.jpg);
  27.         height: 162px;
  28.     }
  29.    
  30.     .wraper .cabecera .novedades {
  31.         float: left;
  32.         margin: 140px 0 0 45px;
  33.         font-size: 14px;
  34.         font-weight: bold;
  35.         color: #7b0e12;
  36.     }
  37.    
  38.     .wraper .cabecera .fecha {
  39.         float: left;
  40.         margin: 130px 0 0 250px;
  41.         font-size: 14px;
  42.         color: #7b0e12;
  43.     }
  44.    
  45.     .wraper .cabecera .anio {
  46.         float: left;
  47.         margin: 85px 0 0 10px;
  48.         font-size: 27px;
  49.         color: #7b0e12;
  50.     }
  51.    
  52.     .cuerpo {
  53.         background-color: #fff;
  54.         width: 515px;
  55.         margin-left: 39px;
  56.         margin-bottom: 30px;
  57.         padding-left: 10px;
  58.     }
  59.    
  60.     .cuerpo h2 {
  61.         font-size: 10px;
  62.         color: #7b0e12;
  63.         padding: 0 0 0 10px;
  64.     }
  65.    
  66.     .seccion {
  67.         margin: 0 0 0 0;
  68.     }
  69.    
  70.     .cuerpo hr {
  71.         width: 500px;
  72.         margin: 40px 15px 0 0;
  73.     }
  74.    
  75.     .cuerpo .imagen {
  76.         padding: 5px 0 10px 0;
  77.         width: 510px;
  78.     }
  79.    
  80.     .cuerpo .imagen p {
  81.         padding: 10px 5px 0 10px;
  82.         font-size: 10px;
  83.         text-align: justify;
  84.     }
  85.    
  86.     .cuerpo a {
  87.         color: #7b0e12;
  88.         text-decoration: underline;
  89.         font-size: 9px;
  90.     }
  91.    
  92.     .contenido {
  93.         display: table;
  94.         width: 510px;
  95.         padding: 10px;
  96.         margin-bottom: 10px;
  97.         vertical-align: text-top;
  98.     }
  99.    
  100.     .contenido .foto {
  101.         width: 100px;
  102.         margin: 0 15px 0 0;
  103.         padding-bottom: 10px;
  104.         float: left;
  105.     }
  106.    
  107.     .contenido .texto {
  108.         width: 480px;
  109.         padding: 0 0 0 15px;
  110.         font-size: 10px;
  111.         text-align: justify;
  112.     }
  113.    
  114.     .contenido .texto h2 {
  115.         margin-top: 0px;
  116.         color: #ba5209;
  117.         font-size: 12px;
  118.     }
  119.    
  120.     /*
  121.      .contenido p{
  122.      font-size:10px;
  123.      padding:0 0 35px 0;
  124.      text-align:justify;
  125.      }
  126.      */
  127.     .footer {
  128.         background-color: #edc8a4;
  129.         color: #000;
  130.         font-size: 10px;
  131.         text-align: left;
  132.         padding: 10px 15px 10px 15px;
  133.         line-height: 1.5em;
  134.     }
  135.  
  136. </head>
abajo dejo el html