Style – Tables

Default styles

For basic styling—light padding and only horizontal dividers—add the base class .table to any <table>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table>
  …
</table>

Optional classes

Add any of the following classes to the .table base class.

.table-striped

Adds zebra-striping to any table row within the <tbody> via the :nth-child CSS selector (not available in IE7-IE8).

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table>
  …
</table>

.table-bordered

Add borders and rounded corners to the table.

# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table>
  …
</table>

.table-hover

Enable a hover state on table rows within a <tbody>.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table>
  …
</table>

.table-condensed

Makes tables more compact by cutting cell padding in half.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
<table>
  …
</table>

Optional row classes

Use contextual classes to color table rows.

Class Description
.success Indicates a successful or positive action.
.error Indicates a dangerous or potentially negative action.
.warning Indicates a warning that might need attention.
.info Used as an alternative to the default styles.
# Product Payment Taken Status
1 TB – Monthly 01/04/2012 Approved
2 TB – Monthly 02/04/2012 Declined
3 TB – Monthly 03/04/2012 Pending
4 TB – Monthly 04/04/2012 Call in to confirm
...
  <tr class="success">
    <td>1</td>
    <td>TB - Monthly</td>
    <td>01/04/2012</td>
    <td>Approved</td>
  </tr>
...

Supported table markup

List of supported table HTML elements and how they should be used.

Tag Description
<table> Wrapping element for displaying data in a tabular format
<thead> Container element for table header rows (<tr>) to label table columns
<tbody> Container element for table rows (<tr>) in the body of the table
<tr> Container element for a set of table cells (<td> or <th>) that appears on a single row
<td> Default table cell
<th> Special table cell for column (or row, depending on scope and placement) labelsMust be used within a <thead>
<caption> Description or summary of what the table holds, especially useful for screen readers
<table>
  <caption>...</caption>
  <thead>
    <tr>
      <th>...</th>
      <th>...</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>...</td>
      <td>...</td>
    </tr>
  </tbody>
</table>

4.859 Comments to “Style – Tables”

  1. online casinos for us players50

  2. empire city online casino81

  3. free casino games vegas world73

  4. play free vegas casino games44

  5. free casino games slot machines54

  6. free casino games no download7

  7. free casino games sun moon45

  8. free casino games slotomania27

  9. heart of vegas free slots77

  10. brian christopher slots46

  11. penny slots free online13

  12. lady luck online casino88

  13. online casino games free49

  14. slotomania slot machines26

  15. rock n cash casino slots44

  16. hollywood casino play4fun23

  17. hollywood casino online slots72

  18. bigfish casino online games87

  19. maryland live casino online43

  20. free casino games online50

  21. online casino real money68

  22. tropicana online casino88

  23. online casinos for us players68

  24. free casino games vegas world31

  25. play free vegas casino games46

  26. free casino games slot machines24

  27. free casino games no download53

  28. free casino games sun moon28

  29. free casino games slotomania48

  30. heart of vegas free slots53

  31. lady luck online casino51

  32. online casino games free44

  33. slotomania slot machines62

  34. rock n cash casino slots76

  35. hollywood casino play4fun82

  36. hollywood casino online slots95

  37. bigfish casino online games84

  38. maryland live casino online27

  39. free casino games online37

  40. online casino real money69

  41. tropicana online casino41

  42. free online casino slots31

  43. online casinos for us players12

  44. empire city online casino91

  45. free casino games vegas world22

  46. play free vegas casino games68

  47. free casino games slot machines15

  48. free casino games no download30

  49. free casino games sun moon36

  50. free casino games slotomania2

  51. heart of vegas free slots52

  52. hollywood casino play4fun60

  53. hollywood casino online slots67

  54. bigfish casino online games97

  55. maryland live casino online96

  56. free casino games online81

  57. online casino real money56

  58. online casinos for us players66

  59. empire city online casino63

  60. free slots casino games31

  61. free casino games vegas world83

  62. play free vegas casino games30

  63. free casino games slot machines6

  64. zone online casino games75

  65. free casino games no download5

  66. free casino games sun moon61

  67. free casino games slotomania58

  68. free casino games slots54

  69. vegas world casino games90

  70. free online casino games76

  71. casino games slots free31

  72. heart of vegas free slots89

  73. hollywood casino play4fun40

  74. hollywood casino online slots66

  75. bigfish casino online games95

  76. maryland live casino online91

  77. online casinos for us players67

  78. empire city online casino87

  79. free casino games vegas world39

  80. play free vegas casino games20

  81. free casino games slot machines11

  82. free casino games no download55

  83. free casino games sun moon82

  84. free casino games slotomania47

  85. world class casino slots20

  86. heart of vegas free slots73

  87. brian christopher slots15

  88. online casino games free27

  89. slotomania slot machines69

  90. hollywood casino play4fun39

  91. hollywood casino online slots44

  92. bigfish casino online games80

  93. maryland live casino online10

  94. free casino games online59

  95. online casino real money57