<table border="1" style="width:200px;">
<tr>
<td style="width:50px;overflow:hidden;">Who</td>
<td style="width:50px;overflow:hidden;">Time</td>
<td style="width:100px;overflow:hidden;">What</td>
</tr>
<?php
while($wr = mysqli_fetch_array($read)) {
echo' <tr>
<td>'.$wr['Who'].'</td>
<td>'.$wr['Time'].'</td>
<td>'.$wr['What'].'</td></tr>';
}
?>
$wr[‘What’] is pulling big data from database and my table is going over 200px. How can I fix it ?
You can use
table-layout:fixedand it should force it…Here’s a fiddle with appropriate css.