Skip to content

Instantly share code, notes, and snippets.

@damian
Created September 12, 2011 20:29
Show Gist options
  • Save damian/1212315 to your computer and use it in GitHub Desktop.
Save damian/1212315 to your computer and use it in GitHub Desktop.
Colgroup
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
* { margin: 0; padding: 0; }
body { font: 14px Georgia, serif; }
table { border-collapse: collapse; width: 600px; }
td, th { border: 1px solid #ccc; padding: 10px; }
.slim { width: 88px; }
.selected { background-color: #FFDFA1; }
</style>
</head>
<body>
<table id="highlight-table">
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col class="selected"/>
</colgroup>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<!-- MORE ROWS -->
</tbody>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment