Я пытаюсь настроить ширину столбца таблицы только на 200 пикселей или 10%. Однако, когда я заполняю данные из базы данных, столбец, кажется, игнорирует ширину столбца и расширяет ее настолько, насколько это возможно. Вот моя таблица HTML.
<table>
<thead>
<tr>
<th><a href='#'>City</a></th>
<th width='200' class='table_width'><a href='#'>name</a></th>
<th><a href='#'>Agent</a></th>
<th>...
//I have tried class and width attribute. both don't work.
</tr>
</thead>
<tbody>
<tr>
//these column data were popluated from database
<td><?= $row->city; ?></td>
<td width='200' class='table_width'><?= $row->_name; ?></td>
//ignore the width and expand the table cell.
<td><?= $row->agent; ?></td>
<td>...
</tr>