I _did_ look, but google's failing me - how do I specify the color of a table background using CSS?
tGo
tGo
code:<HR>Code:/* tables */<P>.title-table{background: "#666666"} .nav-table{background: "#cccccc"}<P>/* general */ .title{font-family: Verdana, Arial, sans-serif;color: white;font-size:40px;font-weight:normal;margin:2px;} .navlink{font-family: Verdana, Arial, sans-serif;color: black;font-size:12px;font-weight:normal;margin:0px;}
code:<HR>Code:<table width="95%" border="0" cellspacing="4" cellpadding="2"> <tr> <td div class="title-table" height="100" align="right" valign="bottom"></div><div class="title"> b o l a n d e r . n e t </div> </td> </tr> <tr> <td div class="nav-table " height="20"></div><div class="navlink">
code:<HR>Code:table.title { width: 95%; padding: 0; }<P>td.nav { background-color: #cccccc; color: black; font-family: Verdana, Arial, sans-serif; font-size: 100%; height: 20px; margin: 0px; }<P>td.titlecell { background-color: #666666; color: white; font-family: Verdana, Arial, sans-serif; font-size: 140%; /* Relative font sizes == teh good, unless it absolutely must fit into some fixed-size layout. */ height: 100px; letter-spacing: .2em; /* This is so you don't have to do silly stuff like manual spaces between letters. */ margin: 2px; text-align: right; vertical-align: bottom; }
code:<HR>Code:<table cellspacing=4 class=title> <tr> <td class=titlecell>bolander.net</td> </tr> <tr> <td class=nav>some nav stuff</td> </tr> </table>
TD {
border-spacing: 2px 4px;
}