I want to give a specific layout for my dynamic data which is retriwve from database and view on website.For example:I have three tables in database and I want to show it on my website through php and sql.when the post is more than two it cannot adopt the css which I have define there. I want to show on my website all the post on the same layout.eg :In one row (300px each box), I want to show 3 boxes. So how can I do this? I am new to php and mysql and want to learn this. Please help me in solving this issue.Here is the structure example :\[code\] row : [] [] [] row2 : [] [] [] row3 : [] [] [] row4 : [] [] []\[/code\]each box 300px contain all the data from mysql database (title,description,category,readmore) in a single box.Here is my code: \[code\]$qry = mysql_query("SELECT * FROM `bids`order by bids.id DESC LIMIT 0, 10", $con);if(!$qry) { die("query not complete".mysql_error());}echo "<div id='content-Area-text'>";while($row=mysql_fetch_array($qry)) { echo "<h4>".$row['Title']."</h4>";?> <?php echo "<p>".substr($row['contents'],0,200)."<br /><a href=http://stackoverflow.com/questions/14045207/articles.phpid=".$row['id']." > Read more</a></p>";}?>\[/code\]