Game Development

Wednesday 9 November 2016

Bootstrap Basic Table

A basic Bootstrap table has a light padding and only horizontal dividers.
The .table class adds basic styling to a table:
FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com

Striped Rows

The .table-striped class adds zebra-stripes to a table:
FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com

Bordered Table

The .table-bordered class adds borders on all sides of the table and cells:
FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com

Hover Rows

The .table-hover class enables a hover state on table rows:
FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com

Condensed Table

FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com

Contextual Classes

Contextual classes can be used to color table rows (<tr>) or table cells (<td>):
FirstnameLastnameEmail
JohnDoejohn@example.com
MaryMoemary@example.com
JulyDooleyjuly@example.com

Responsive Tables

The .table-responsive class creates a responsive table. The table will then scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, there is no difference:
<div class="table-responsive">  <table class="table">    ...  </table></div>

No comments:

Post a Comment