Simple scheme:
<tr class="something">
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
</tr>
I need to set up a fixed width for <td>
. I've tried:
tr.something {
td {
width: 90px;
}
}
Also
td.something {
width: 90px;
}
for
<td class="something">B</td>
And even
<td style="width: 90px;">B</td>
But the width of <td>
is still the same.
Best Answer
For Bootstrap 4.0:
In Bootstrap 4.0.0 you cannot use the
col-*
classes reliably (works in Firefox, but not in Chrome). You need to use OhadR's answer:For Bootstrap 3.0:
With twitter bootstrap 3 use:
class="col-md-*"
where * is a number of columns of width.For Bootstrap 2.0:
With twitter bootstrap 2 use:
class="span*"
where * is a number of columns of width.** If you have
<th>
elements set the width there and not on the<td>
elements.