Tema: alinear DIV
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/07/2007, 03:15
:.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

Checa con este codigo.

Saludos

Código HTML:
<!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: 500px;
	width: 500px;
}
.todasLasFotos {
	float: left;
	height: 500px;
	width: 250px;
}
.foto {
	float: left;
	height: 200px;
	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">ACA VA LA FOTO</div>
    <div class="descripcionFoto">ACA EL TEXTO</div>
    <div class="foto">ACA VA LA FOTO</div>
    <div class="descripcionFoto">ACA EL TEXTO</div>
  </div>
  <div class="todasLasFotos">
    <div class="foto">ACA VA LA FOTO</div>
    <div class="descripcionFoto">ACA EL TEXTO</div>
    <div class="foto">ACA VA LA FOTO</div>
    <div class="descripcionFoto">ACA EL TEXTO</div>
  </div>

</div>
</body>
</html>