---
title: Table
layout: docs
theme: library
doc-tab: elements
doc-subtab: table
breadcrumb:
- home
- documentation
- elements
- elements-table
meta:
colors: false
sizes: false
variables: true
---
{% capture table_example %}
You can create a Bulma table simply by attaching a single table
CSS class on a
<table>
HTML element with the following structure:
-
<table class="table">
as the main
container
thead
the optional top part of the table
tfoot
the optional bottom part of the table
-
tbody
the main content of the table
-
tr
each table row
th
a table cell heading
td
a table cell
You can set a table row as selected by appending the is-selected
modifier on a
<tr>
{%
include docs/elements/snippet.html content=table_example horizontal=true
more=true
%}
{% include docs/elements/anchor.html name="Colors" %}
You can change the color of a single <td>
or <th>
cell, or a whole
<tr>
row, by adding one of the color modifiers:
is-primary
is-link
is-info
is-success
is-warning
is-danger
is-black
is-dark
is-light
is-white
{%
include docs/elements/snippet.html content=table_colors horizontal=true
more=true
%}
{% include docs/elements/anchor.html name="Modifiers" %}
{% capture scrollable_table %}