Tables-Sass
Simple table styling with some Sass.
Simple table styling with some Sass.
For simple table styling, use the .table class.
| First Name | Last Name | Super Hero |
|---|---|---|
| Peter | Parker | Spiderman |
| Bruce | Wayne | Batman |
| Clark | Kent | Superman |
Reduce cell padding by adding the .table-condensed class.
You still need to include the .table class.
| First Name | Last Name | Super Hero |
|---|---|---|
| Peter | Parker | Spiderman |
| Bruce | Wayne | Batman |
| Clark | Kent | Superman |
Add borders and rounded corners by adding the .table-bordered class.
You still need to include the .table class.
| First Name | Last Name | Super Hero |
|---|---|---|
| Peter | Parker | Spiderman |
| Bruce | Wayne | Batman |
| Clark | Kent | Superman |
You can combine the .table-condensed and .table-bordered classes for additional styling using @extends like the following.
Tables works in all modern browsers, and IE 6 and above.
Because IE8 and lower lack border-radius support, rounded corners on bordered tables only work on IE9 and higher.