Border options
Examples of <tbody>borders
Horizontal borders
Example of horizontaltable borders. This is a default table border style attached to .tableclass. All borders have the same grey color and style, table itself doesn't have a border, but you can add this border using .table-framedclass added to the table with .tableclass.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Vertical borders
Example of verticaltable borders. This custom table border layout displays vertical borders only. However border between table headand table bodyis also visible for better visual separation. To use this layout add .table-columnedclass to the table with .tableclass.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Both borders
Example of a fully borderedtable. Here we have both vertical and horizontal borders displayed. All borders have the same color, table headis visually divided from the table bodywith a bit darker border color. To use this layout add .table-borderedclass to the table with .tableclass.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Borderless table
Example of borderlesstable. Here all border are hidden, except border between table headand table body, table bodyand table footer, this border is added to all table layouts and is always visible. To hide all borders from the table, add .table-borderlessclass to the table with .tableclass.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Table head borders
Basic and custom <thead>row borders
Default border
Example of a default theadborder. This border has 1px width and slightly darker color than other borders for better visual separation of table headand table body. Vertical cell borders in the table head always have the same color as borders in table body.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Solid border
Example of a solidborder inside table head. This border inherits all styling options from the default border style, the only difference is it has 2pxwidth. Sometimes it could be useful for visual separation and addition highlight. To use this border add .table-border-solidto the table head row.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Double border
Example of a doubleborder inside table head. This border has 3pxwidth, doublestyle and inherits all styling options from the default border style. Visually it displays table headand bodyas 2 separated table areas. To use this border add .border-doubleto the table head row.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Border color
Example of a table head border with customcolor. According to the custom color system options, you can set any of predefined colors by adding .border-bottom-*class to the table head row. This technique works with all border styles demonstrated above. You can check all available colors here →.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Table body borders
Custom <tbody>border styling
Default border
Example of default borders inside table body. Basic table body borders have the same light greycolor, style and width. Since this is a default table body border styling, rows don't require any additional classes and work in default markup with .tableclasses added to the table.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Solid border
Example of a solidborders inside table body. This border inherits all styling options from the default border style, the only difference is it has 2pxwidth. To use this border add .table-border-solidto the table bodyrow. This border style works only with horizontal borders.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Double border
Example of doubleborders inside table body. This has 3pxwidth and doublestyle. Visually it separates rows and the table looks more like a list of rows. To use this border add .border-doubleto the table bodyrow. This border style works only with horizontal borders.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank
Dashed border
Example of dashedborders inside table body. This border perfectly fits when you need to highlight incomplete or extra rows. Dashed border style works only with horizontal borders and only in table body, it is mostly useless in table head. To use this border style add .table-border-dashedto the table bodyrow.
# First Name Last Name Username
1 Eugene Kopyov @Kopyov
2 Victoria Baker @Vicky
3 James Alexander @Alex
4 Franklin Morrison @Frank