Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/07/2010, 01:40
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: alinear 2 imagenes en linea.

XxflezhaxX

Tengo la impresión de que esto ya te lo he respondido en otra oportunidad. mira bien y aprendelo como si fuera la tabla del 2, la clave esta en position: relative y float:left , lo demás un poco de estética para que las visualices correctamente, una vez que tengas las capas 1 y 2 les metes dentro lo que quieras.

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Divs alineadas hacia la izquierda</title>
  6. <style type="text/css">
  7. <!--
  8. div#Div1 {
  9.     position:relative;
  10.     width:200px;
  11.     height:115px;
  12.     z-index:1;
  13.     background-color: #993300;
  14.     float: left;
  15.    border: solid #000 1px;
  16.    margin-right: 5px;
  17. }
  18. div#Div2 {
  19.     position:relative;
  20.     width:200px;
  21.     height:115px;
  22.     z-index:2;
  23.     background-color: #0099FF;
  24.     float: left;
  25.     border: solid #000 1px;
  26. }
  27. -->
  28. </head>
  29.  
  30. <div id="Div1">contenido</div>
  31. <div id="Div2">contenido</div>
  32. </body>
  33. </html>


Saludos