Tema: alinear DIV
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/07/2007, 11:25
:.SMITEXX.:
 
Fecha de Ingreso: noviembre-2002
Ubicación: Cerca de todo, lejos de la nada.
Mensajes: 82
Antigüedad: 21 años, 5 meses
Puntos: 0
Re: alinear DIV

Independiente del alto de la imagen, siempre van a estar a la misma altura los textos con este codigo. Lo del php, que la fuerza te acompañe, pues no lo domino.

Chau

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#contenedor {
	height: auto;
	width: 500px;
}
.todasLasFotos {
	float: left;
	width: 500px;
}
.foto {
	float: left;
	height: auto;
	width: 250px;
	background-color: #D4D0C8;
}
.descripcionFoto {
	float: left;
	height: 50px;
	width: 250px;
	background-color: #000000;
	color: #FFFFFF;
}
-->
</style>
</head>

<body>
<div id="contenedor">
  <div class="todasLasFotos">
    <div class="foto"><img src="" alt="" name="imagen02" width="150" height="250" id="imagen" /></div>
    <div class="foto">    <img src="" alt="" name="imagen02" width="150" height="150" id="imagen02" /></div>
</div>

  <div class="todasLasFotos">
    <div class="descripcionFoto">ACA EL TEXTO</div>
    <div class="descripcionFoto">ACA EL TEXTO</div>
  </div>
</div>
</body>
</html>