Created
June 22, 2015 02:38
-
-
Save slav123/386ae0e7b0037f79a7a2 to your computer and use it in GitHub Desktop.
angled headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="scrollable-table"> | |
<table class="table table-striped table-header-rotated"> | |
<thead> | |
<tr> | |
<!-- First column header is not rotated --> | |
<th></th> | |
<!-- Following headers are rotated --> | |
<th class="rotate-45"><div><span>Column header 1</span></div></th> | |
<th class="rotate-45"><div><span>Column header 2</span></div></th> | |
<th class="rotate-45"><div><span>Column header 3</span></div></th> | |
<th class="rotate-45"><div><span>Column header 4</span></div></th> | |
<th class="rotate-45"><div><span>Column header 5</span></div></th> | |
<th class="rotate-45"><div><span>Column header 6</span></div></th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<th class="row-header">Row header 1</th> | |
<td><input checked="checked" name="column1[]" type="radio" value="row1-column1"></td> | |
<td><input checked="checked" name="column2[]" type="radio" value="row1-column2"></td> | |
<td><input name="column3[]" type="radio" value="row1-column3"></td> | |
<td><input name="column4[]" type="radio" value="row1-column4"></td> | |
<td><input name="column5[]" type="radio" value="row1-column5"></td> | |
<td><input name="column6[]" type="radio" value="row1-column6"></td> | |
</tr> | |
<tr> | |
<th class="row-header">Row header 2</th> | |
<td><input name="column1[]" type="radio" value="row2-column1"></td> | |
<td><input name="column2[]" type="radio" value="row2-column2"></td> | |
<td><input checked="checked" name="column3[]" type="radio" value="row2-column3"></td> | |
<td><input checked="checked" name="column4[]" type="radio" value="row2-column4"></td> | |
<td><input name="column5[]" type="radio" value="row2-column5"></td> | |
<td><input name="column6[]" type="radio" value="row2-column6"></td> | |
</tr> | |
<tr> | |
<th class="row-header">Row header 3</th> | |
<td><input name="column1[]" type="radio" value="row3-column1"></td> | |
<td><input name="column2[]" type="radio" value="row3-column2"></td> | |
<td><input name="column3[]" type="radio" value="row3-column3"></td> | |
<td><input name="column4[]" type="radio" value="row3-column4"></td> | |
<td><input checked="checked" name="column5[]" type="radio" value="row3-column5"></td> | |
<td><input checked="checked" name="column6[]" type="radio" value="row3-column6"></td> | |
</tr> | |
</tbody> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment