December 30th, 2002, 04:18 PM
-
CSS: Bg Color of Table (Row,Data)
I want to make the bg color of a form a certain color. This is what I have so far, but it doesn't show the color that I want.
Code:
<style type="css/text">
.tblBg { background-color : C0C0C0 }
</style>
<table name="myTable" border="1" class="tblBg">
<th>This is my Table Heading</th>
</table>
Some other way to do this I'm sure. Any reasons why it doesn't work (I'm pretty sure somebody knows this).
December 30th, 2002, 04:26 PM
-
You forgot to put the "#" sign in front of the color code. It should read "#C0C0C0".
December 31st, 2002, 09:38 AM
-
Thanks, but it still doesn't work
I added the # to the color code, but the table bg color is still white, and not grey (#C0C0C0). Anybody know why?
December 31st, 2002, 03:29 PM
-
LOL!!!!
Ok, this took way longer than it should have to figure out. The mime-type for style sheets is "text/css", not "css/text"
.
-james
December 31st, 2002, 10:42 PM
-
lol..
oops. I feel kind of uh.. dumb, now. Thanks though.
Last edited by jsKid; June 2nd, 2005 at 11:50 AM.