Is it possible to specify the background color of a table in a CSS file?
If so, how do I do this?
Is it possible to specify the background color of a table in a CSS file?
If so, how do I do this?

CSS
HTMLCode:table.foobar{ background:red; }
Code:<table class="foobar"> <tr> <td>foo</td> <td>bar</td> </tr> </table>
Thanks for that.
Can you specift hex codes for the colours, or is it a case of red, blue, green, etc?
I assume most browsers won't understand if I type "backround: pale grey with a hint of green" for example!

Yes you can use hex:
Code:table.foobar{ background:#758A79; }
There are currently 1 users browsing this thread. (0 members and 1 guests)