Robert's Resume

Tables

Code

.table

.table-striped

.table-bordered

.table-hover

.table-dark

.table-borderless

.table-(contextual class)

.table-sm

.table-responsive-sm|md|lg|xl|xxl

Definitions

Table
▪ Basic tables include light padding and horizontal dividers.
Striped
Alternates shaded rows.
Bordered
▪ Adds borders on all sides ot the table and cells.
Hover
▪ Adds gray background to rows on hover.
Dark
▪ Adds a black background.
Borderless
▪ Removes borders from the table.
Color
▪ You can add contextual colors to cells, rows or the entire table.
Small
▪ Reduces the table padding in half.
Responsive
▪ Creates a responsive table that will scroll horizontally on screens that are less than the breakpoint.

Key Points

  • .table-active: Applies the hover color to the table row or table cell.
  • You can use contextual classes on the Table Head.
  • To make the table responsive only when the horizontal content is too large, use just .table-resonsive without a screen designation.
  • Bootstrap 5 puts captions below the table. To put captions at the top, add .caption-top to the <table> element.
  • Top

Basic Tables

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table to the <table> element.

Top

Dark Tables

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table and .table-dark to the <table> element.

Top

Color Tables

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34
Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add color to the entire table, the head, the row or an individual cell by adding .table-* to the appropriate tag, where * is a contextual class.

Top

Small Tables

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table and .table-sm to the <table> element.

Top

Striped

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table and .table-striped to the <table> element.

Top

Hover

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table and .table-hover to the <table> element.

Top

Bordered

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table and .table-bordered to the <table> element.

Top

Borderless

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table and .table-borderless to the <table> element.

Top

Dark Striped

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table, table-dark and .table-striped to the <table> element.

Top

Dark Hover

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table, table-dark and .table-hover to the <table> element.

Top

Dark Bordered

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table, table-dark and .table-bordered to the <table> element.

Top

Dark Borderless

Dungeon Master Weapons
Item Weight Damage
Dagger 0.5 10
Falchion 3.3 30
Sword 3.2 34

Add .table, table-dark and .table-borderless to the <table> element.

Top

Responsive Tables

Dungeon Master Weapons
Item Weight Actions (Damage, Difficulty, Uses) Damage Distance Shoot Damage Class/Delta Energy Notes Locations
Dagger 0.5 Throw (0,0)
Stab (48,0)
Slash (16,2)
10 19 0 2/- - Azizi Johari
(01,06,17) (01,08,19) (04,32,28)
Falchion 3.3 Swing (16,0)
Parry (8,2)
Chop (48,3)
30 8 0 0/-
Sword 3.2 Swing (16,0)
Parry (8,2)
Chop (48,3)
34 10 0 0/-

Wrap the entire <table> in a <div> with class .table-responsive.

Top

Responsive Tables - Small

Dungeon Master Weapons
Item Weight Actions (Damage, Difficulty, Uses) Damage Distance Shoot Damage Class/Delta Energy Notes Locations
Dagger 0.5 Throw (0,0)
Stab (48,0)
Slash (16,2)
10 19 0 2/- - Azizi Johari
(01,06,17) (01,08,19) (04,32,28)
Falchion 3.3 Swing (16,0)
Parry (8,2)
Chop (48,3)
30 8 0 0/-
Sword 3.2 Swing (16,0)
Parry (8,2)
Chop (48,3)
34 10 0 0/-

Wrap the entire <table> in a <div> with class .table-responsive-sm.

Top

Responsive Tables - Medium

Dungeon Master Weapons
Item Weight Actions (Damage, Difficulty, Uses) Damage Distance Shoot Damage Class/Delta Energy Notes Locations
Dagger 0.5 Throw (0,0)
Stab (48,0)
Slash (16,2)
10 19 0 2/- - Azizi Johari
(01,06,17) (01,08,19) (04,32,28)
Falchion 3.3 Swing (16,0)
Parry (8,2)
Chop (48,3)
30 8 0 0/-
Sword 3.2 Swing (16,0)
Parry (8,2)
Chop (48,3)
34 10 0 0/-

Wrap the entire <table> in a <div> with class .table-responsive-md.

Top

Responsive Tables - Large

Dungeon Master Weapons
Item Weight Actions (Damage, Difficulty, Uses) Damage Distance Shoot Damage Class/Delta Energy Notes Locations
Dagger 0.5 Throw (0,0)
Stab (48,0)
Slash (16,2)
10 19 0 2/- - Azizi Johari
(01,06,17) (01,08,19) (04,32,28)
Falchion 3.3 Swing (16,0)
Parry (8,2)
Chop (48,3)
30 8 0 0/-
Sword 3.2 Swing (16,0)
Parry (8,2)
Chop (48,3)
34 10 0 0/-

Wrap the entire <table> in a <div> with class .table-responsive-lg.

Top