Setting background color in html
Results 1 to 3 of 3

Thread: Setting background color in html

  1. #1
    Join Date
    Jun 2000

    Setting background color in html

    I have a table I want to put on a black background but when I try, the black floods the table as well.

    How do I state the background without including the table?

    Thanks - rev

  2. #2
    Join Date
    Mar 2009
    Arkham Asylum, Cell 13
    I'm guessing you'd just have to set the table background color.

  3. #3
    Join Date
    Dec 2003
    Chitown Suburbia Illinois USA
    Midkynte is correct. The table will automatically use the page background color, so you will have to manually tell the table what color you want. Now why you'd want a black background I do not know, but that should clear it up for you.

    Add the attribute bgcolor to the table tag. Remember not to use color words like "Black" or "Blue" as they will render different for each end user. Instead use "FFFFFF" for white or "000000" for black as an example.


    Good way to choose your color and get the code for it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts