How to set up fixed width for table cell with Bootstrap?

To set fixed width for table cell (column) one can use Bootstrap flexgrid system with pre-defined 12 columns in a row by adding “class=”col-md-?”. Just make sure that total sum of all values is equal 12:

<tr class="something">
  <td class="col-md-2">First</td>
  <td class="col-md-4">Second</td>
  <td class="col-md-5">Third</td>
  <td class="col-md-1">Fourth</td>
</tr>
  • Done!

This article was written by UzLA