a coder
a coder

Reputation: 7649

align table cell (td) content in bulma

Bulma has very nice table layout, however I'm struggling to find how to horizontally align table data cell (<td></td>) content.

Simply adding

<td align='center'>in the middle</td>

Does not work.

Suggestions?

Upvotes: 4

Views: 4233

Answers (1)

Matt Sanders
Matt Sanders

Reputation: 10725

You can use the Bulma typography helpers to align text in table cells (and otherwise).

In this instance <td class="has-text-centered"> is probably what you are after.

Note there are also has-text-right, has-text-left, etc.

Upvotes: 14

Related Questions