Posted By

5h4rk on 11/24/10


Tagged

table


Versions (?)

Generic Table


 / Published in: CSS
 

  1. /* Generic Table
  2. ---------------------------------------------------------- */
  3. table { width:100%; margin:20px 0; border-collapse:collapse; border-top:1px solid #ddd; border-left:1px solid #ddd; }
  4. table .heading { background:#666; color:#fff; text-transform:uppercase; text-align:center; }
  5. table th,
  6. table td { border-bottom:1px solid #ddd; border-right:1px solid #ddd; }
  7. table th { font-weight:bold; }
  8. table tr:nth-of-type(even) { background:#eee; }
  9. table .hover { background:#ccc; }

Report this snippet  

You need to login to post a comment.