Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stereosupersonic
Created February 1, 2010 12:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stereosupersonic/291648 to your computer and use it in GitHub Desktop.
Save stereosupersonic/291648 to your computer and use it in GitHub Desktop.
table.css
table tr th {background:#222; color:#fff; padding:0; border:#111 solid 1px; text-align: center; font-weight: bold;}
table tr td {border:1px #ccc solid; padding:5px;}
table tr td.rightright {background: #eee;}
table tr td h4 {margin:0; padding:0; font-weight:normal;}
#from here => http://net.tutsplus.com/tutorials/other/building-a-forum-from-scratch-with-ruby-on-rails/
table {
margin-bottom: 2em;
width: 100%;
}
th {
border-bottom: 2px solid #ccc;
font-weight: bold;
text-align: left;
}
td { border-bottom: 1px solid #ddd; }
caption, th, td {
padding: 4px 10px 4px 0;
}
caption {
background: #f1f1f1;
padding: 10px 0;
margin-bottom: 1em;
}
tr,td,th {
vertical-align: middle;
}
/* Use this if you use span-x classes on th/td. */
table .last { padding-right: 0; }
#from http://github.com/thoughtbot/flutie/blob/master/public/stylesheets/tables.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment