Skip to content

Instantly share code, notes, and snippets.

@songxiaofeng1981
Created November 30, 2012 07:45
Show Gist options
  • Save songxiaofeng1981/4174371 to your computer and use it in GitHub Desktop.
Save songxiaofeng1981/4174371 to your computer and use it in GitHub Desktop.
css:table
<div class='example'>
<table cellspacing='0'>
<thead>
<tr class='odd'>
<th>Title</th>
<th>One</th>
<th>Two</th>
<th>Three</th>
<th>Four</th>
<th>Row Total</th>
</tr>
</thead>
<tbody>
<tr class='even'>
<th>Single</th>
<td class='numeric'>1.0</td>
<td class='numeric'>2.0</td>
<td class='numeric'>3.0</td>
<td class='numeric'>4.0</td>
<td class='numeric'>10.0</td>
</tr>
<tr class='odd'>
<th>Tens</th>
<td class='numeric'>10.0</td>
<td class='numeric'>20.0</td>
<td class='numeric'>30.0</td>
<td class='numeric'>40.0</td>
<td class='numeric'>100.0</td>
</tr>
</tbody>
<tfoot>
<tr class='even'>
<th>Total</th>
<td class='numeric'>11.0</td>
<td class='numeric'>22.0</td>
<td class='numeric'>33.0</td>
<td class='numeric'>44.0</td>
<td class='numeric'>110.0</td>
</tr>
</tfoot>
</table>
</div>
@import "compass/utilities/tables/borders";
.example {
table {
@include inner-table-borders(1px, #7a98c6);
@include outer-table-borders(2px); }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment