Created
September 21, 2016 20:57
-
-
Save alkrauss48/36f093b59564d46eebb328f5de54e409 to your computer and use it in GitHub Desktop.
Base Table Styles
This file contains 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 { | |
min-width: 100%; | |
margin-bottom: 2em; | |
text-align: center; | |
} | |
tbody { | |
border: 2px solid #d1d1d1; | |
border-right: none; | |
} | |
tr { | |
border-bottom: 1px solid #d1d1d1; | |
} | |
td, th { | |
padding: .75em; | |
} | |
th { | |
font-weight: bold; | |
font-size: 1.1em; | |
} | |
tr:nth-child(odd) { | |
background-color: #f2f2f2; | |
} | |
td { | |
font-weight: 300; | |
border-right: 2px solid #d1d1d1; | |
} | |
.table-wrapper { | |
overflow: auto; | |
} |
This file contains 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("<div class='table-wrapper'></div>"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment