Last active
December 15, 2015 06:39
-
-
Save rcmdnk/5218040 to your computer and use it in GitHub Desktop.
GitHub like table (for Octopress)
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 { | |
border-style:solid; | |
border-width:1.5px; | |
border-color:#CCCCCC; | |
} | |
* + table th, * + table td { | |
border-style:solid; | |
border-width:1.5px; | |
border-color:#CCCCCC; | |
} | |
* + table th { | |
border-style:solid; | |
font-weight:bold; | |
background: #FFFFFF; | |
} | |
* + table tr:nth-child(2n+1) { | |
background: #F8F8F8; | |
} | |
* + table tr:nth-child(even) { | |
background: #FFFFFF; | |
} | |
* + table th[align="left"], * + table td[align="left"] { | |
text-align:left; | |
} | |
* + table th[align="right"], * + table td[align="right"] { | |
text-align:right; | |
} | |
* + table th[align="center"], * + table td[align="center"] { | |
text-align:center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment