Created
April 22, 2013 15:03
-
-
Save anonymous/5435756 to your computer and use it in GitHub Desktop.
scrolling table ? , nop, tbody maybe :)
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
/* scrolling table ? , nop, tbody maybe :) */ | |
table { | |
width:600px;margin:3em auto; | |
text-align:center; | |
display:block;border-spacing:0; | |
background:#EFEFEF; | |
border:solid 1px; | |
padding:0 0 1.05em 1.05em; | |
} | |
thead,tfoot , tr ,caption{display:table;width:100%;} | |
thead,tfoot {box-sizing:border-box;padding-right:1.05em;background:#EFEFEF;box-shadow:0 0 5px black;position:relative;} | |
th, td {border:solid 1px;padding:10px;} | |
tbody {display:block;height:200px; overflow:auto;background:#def;} |
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
<table> | |
<caption>Scrolling table</caption> | |
<thead><tr><th> header</th><th> header</th><th> header</th><th> header</th></tr></thead> | |
<tbody> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
<tr><td> Cell </td><td> Cell </td><td> Cell </td><td> Cell </td></tr> | |
</tbody> | |
<tfoot><tr><td> Footer </td><td> Footer </td><td> Footer </td><td> Footer </td></tr></tfoot> | |
</table> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment