#1
  1. Application is what Divides Us
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Dec 2002
    Location
    Titusville, FL
    Posts
    2,179
    Rep Power
    59

    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).
    Download [ Fx | Op ] Validate [ Markup | Css ]
  2. #2
  3. The Basketball Star
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2001
    Location
    H-Town
    Posts
    550
    Rep Power
    14
    You forgot to put the "#" sign in front of the color code. It should read "#C0C0C0".
  4. #3
  5. Application is what Divides Us
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Dec 2002
    Location
    Titusville, FL
    Posts
    2,179
    Rep Power
    59

    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?
    Download [ Fx | Op ] Validate [ Markup | Css ]
  6. #4
  7. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    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
  8. #5
  9. Application is what Divides Us
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Dec 2002
    Location
    Titusville, FL
    Posts
    2,179
    Rep Power
    59

    lol..


    oops. I feel kind of uh.. dumb, now. Thanks though.
    Last edited by jsKid; June 2nd, 2005 at 12:50 PM.
    Download [ Fx | Op ] Validate [ Markup | Css ]

IMN logo majestic logo threadwatch logo seochat tools logo