Home >Web Front-end >CSS Tutorial >How do I align text in tables using Bootstrap?
Text Alignment Classes in Bootstrap
In Bootstrap, there are various text alignment classes available to align text within tables.
Bootstrap 3
Example:
<code class="html"><th class="text-right">Total</th> <td>,000,000.00</td></code>
Bootstrap 4
Similar to Bootstrap 3, Bootstrap 4 also provides text alignment classes:
Bootstrap 5
In Bootstrap 5, text-left has been replaced with text-start, and text-right has been replaced with text-end. Otherwise, the text alignment classes remain the same.
The above is the detailed content of How do I align text in tables using Bootstrap?. For more information, please follow other related articles on the PHP Chinese website!