.common_div>DIV{ display:block; float:left; border:1px solid gold; margin:5px; background:#AADDFF; padding:5px; border-radius:5px; box-shadow: 5px 5px 2px #888888; } .newLine{ clear:both; }
<DIV class='common_div' style='width:100%'> <?php for($i=0;$i<20;$i++) ?> <DIV>Google is not helping me enough</DIV> <?php } ?> <DIV class='newLine'> <DIV> <DIV> entire body </DIV>
.FirstDiv { float:left; height:100px; width:100px; background-color:red; } .SecondDiv { float:left; height:100px; width:100px; background-color:green; }
<div class="FirstDiv"> FirstDiv </div> <div class="SecondDiv"> SecondDiv </div>
float:left;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)