Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/03/2012, 05:59
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Mostrar imagenes en 4 columnas

la solución es css. añade tanto bloques como quieras
Cita:
<!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>Documento sin título</title>
<style type="text/css">
* {
margin:0;
padding:0;
position: relative;
}

html, body {
height: 100%;
font-family: garamond, serif;
font-size: 100%;
}

#contenedor {
background: #fe0;
width: 900px;
margin: 0 auto;
overflow: hidden;
}

#contenedor > div {
width: 140px;
height: 105px;
background: #cacaca;
float: left;
margin: 10px;
}

#contenedor > div:nth-child(4n) {
float:right;
background: red;
}

#contenedor > div:nth-child(4n-1) {
margin-left: 50px;
margin-right: 100px;
background: green;
}


#contenedor > div:nth-child(4n-2) {
margin-left: 100px;
margin-right: 50px;
background: pink;
}
</style>
</head>
<body>
<div id="contenedor" >
<div>FOTO1</div>
<div>FOTO2</div>
<div>FOTO3</div>
<div>FOTO4</div>
<div>FOTO5</div>
<div>FOTO6</div>
<div>FOTO7</div>
<div>FOTO8</div>
<div>FOTO9</div>
<div>FOTO10</div>
</div>
</body>
</html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}