<?php
echo "<html>
<head>
<title>Random divs</title>
<style type=\"text/css\">
* {
margin: 0;
padding: 0;
}
body {
width: 1280px;
height: auto;
}
.general {
float: left;
width: auto;
height: auto;
}
.random {
background: #123534;
width: 50px;
height: 50px;
}
</style>
</head>
<body>";
for($i=0;$i<100;$i++) {
$a1 = rand(0,40);
$b1 = rand(0,40);
$c1 = rand(0,40);
$d1 = rand(0,40);
$a2 = rand(0,40);
$b2 = rand(0,40);
$c2 = rand(0,40);
$d2 = rand(0,40);
$a3 = rand(0,40);
$b3 = rand(0,40);
$c3 = rand(0,40);
$d3 = rand(0,40);
echo "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width: 50%;\">
<tr>
<td><div class=\"random\" style=\"margin-top: $a1; margin-left: $b1; margin-bottom: $c1; margin-right: $d1;\"></div></td>
<td><div class=\"random\" style=\"margin-top: $a2; margin-left: $b2; margin-bottom: $c2; margin-right: $d2;\"></div></td>
<td><div class=\"random\" style=\"margin-top: $a3; margin-left: $b3; margin-bottom: $c3; margin-right: $d3;\"></div></td>
</tr>
<div class=\"random\" style=\"margin-top: $a1; margin-left: $b1; margin-bottom: $c1; margin-right: $d1;\"></div>
</table>";
/*echo "
<div class=\"general\">
<div class=\"random\" style=\"margin-top: $a1; margin-left: $b1; margin-bottom: $c1; margin-right: $d1;\"></div>
<div class=\"random\" style=\"margin-top: $a2; margin-left: $b2; margin-bottom: $c2; margin-right: $d2;\"></div>
<div class=\"random\" style=\"margin-top: $a3; margin-left: $b3; margin-bottom: $c3; margin-right: $d3;\"></div>
</div>
";*/
}
echo "
</body>
</html>";
?>