Skip to content

Instantly share code, notes, and snippets.

@rreeger
Created August 8, 2012 19:01
Show Gist options
  • Save rreeger/3297595 to your computer and use it in GitHub Desktop.
Save rreeger/3297595 to your computer and use it in GitHub Desktop.
CSS: Blue Sheets Table
<!-- Make sure to remove <p> tags from <head> after converting Markdown to HTML. -->
<head>
<style>
table th {
white-space:nowrap
}
table td:nth-child(n+2) {
background: rgb(135, 206, 250);
font-weight:bold;
color:rgb(25, 25, 112);
vertical-align:middle;
}
table td:empty {
background: #ffffff;
}
table td[colspan="11"] {
background: #aaa!important
}
table.foo td:nth-child(n+2) {
background: rgb(205, 201, 201);
font-weight:bold;
color:rgb(100, 100, 100);
vertical-align:middle;
}
</style>
</head>
<!-- Make sure to enter table class="foo" on second table. -->
<p><center><h1>Blues Sheets - Week of %M/%D/%Y</h1></center></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment