91-9990449935 0120-4256464 |
Bootstrap TablesWe can create different types of Bootstrap tables by using different classes to style them. Bootstrap Basic Table:The basic Bootstrap table has a light padding and only horizontal dividers. The .table class is used to add basic styling to a table. Example: Test it NowBootstrap Striped Rows Table:The .table-striped class is used to add zebra-stripes to a table: Test it NowBootstrap Bordered table:The .table-bordered class is used to add borders on all sides of the table and cells: Test it NowBootstrap Hover rows Table:The .table-hover class is used to enable a hover state on table rows: Test it NowBootstrap Condensed table:The .table-condensed class is used to make a table more compact by cutting cell padding in half: Test it NowBootstrap Contextual classes:.Contextual classes are used to color table rows (<tr>) or table cells (<td>): Following are the different contextual classes:
Example: Test it NowResponsive tables:The .table-responsive class is used to create a responsive table. You can open the responsible table even on small devices (under 768px). Then the table will be scrolled horizontally. Displays larger than 768px wide, there is no difference. See this example: |