<div id="vt_main_contaner">
<div id="vt_main_com"></div>
<div id="vt_nav_right"></div>
</div>
body {width:75%}
<link rel="stylesheet/less" href="/css/style.less">
<script src="/js/less.js"></script>
rel="stylesheet/less"
<?php if($i%3!==0) {
echo '</tr>';
}
?>
$("img").on("click", function() {
$(this).attr("src", "/path/to/new/img");
})
<?php
include 'db.php';
$z="SELECT * FROM news";
$rz=mysqli_query($db, $z);
$i=1;
?>
<table>
<?php while($row=mysqli_fetch_object($rz)): ?>
<?php if($i%3===1): ?>
<tr>
<?php endif; ?>
<td>
<div>
<?php echo $row->title; ?>
<img src="/images/news/<?php echo $row->img; ?>" />
</div>
</td>
<?php if($i%3===0): ?>
</tr>
<?php endif; ?>
<?php i++; endwhile; ?>
<?php if($i%3!==0): ?>
</tr>
<?php endif; ?>
</table>