Last active
October 26, 2015 16:37
-
-
Save mrjasonweaver/c1939f67c0a4d094d141 to your computer and use it in GitHub Desktop.
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-wrap { | |
width: 100%; | |
overflow-x: scroll; | |
margin-bottom: 50px; | |
} | |
table { | |
min-width: 600px; | |
border-spacing: 0; | |
border-collapse: collapse; | |
} |
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
var App = {}; | |
// responsive scrolling tables | |
App.responsiveTables = function() { | |
$( "table" ).wrap( "<div class='table-wrap'></div>"); | |
}; | |
$(document).ready(function() { | |
App.responsiveTables(); | |
}); |
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> | |
<thead> | |
<tr> | |
<th>Table header</th> | |
<th>Table header</th> | |
<th>Table header</th> | |
<th>Table header</th> | |
<th>Table header</th> | |
<th>Table header</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
</tr> | |
<tr> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
</tr> | |
<tr> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
<td>Table Cell</td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment