Ver Mensaje Individual
  #6 (permalink)  
Antiguo 11/11/2012, 09:05
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: mostrar datos en columnas

veamos si es esto lo que quieres
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 content="text/html; http-equiv="Content-Type" charset=utf-8"/>
<title></title>
<style type="text/css">
#cont {
border: 1px solid blue;
width: 500px;
height: 300px;
}

div {
display: inline-block;
vertical-align: top;
border: 1px solid red;
margin-right: 10px;
padding: 0 3px;
height: 100%;
}
</style>
</head>
<body>
<?php
$total_registros_encontrados = 17;
$registroxbloque = 11;
?>



<div id="cont">
<?php
for ($i = 0; $i <= $total_registros_encontrados; $i++) {

if ($i % $registroxbloque == 0) {echo '<div>';}

echo $i. '<br />';

if ($i % $registroxbloque == 10) {echo '</div>';}
}
?>

</div>


</body>
</html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}