Setting background color in html
Results 1 to 6 of 6

Thread: Setting background color in html

  1. #1
    Join Date
    Jun 2000
    Location
    California
    Posts
    3,919

    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
    Location
    Arkham Asylum, Cell 13
    Posts
    11,373
    I'm guessing you'd just have to set the table background color.
    https://www.html.am/html-codes/table...ound-color.cfm

  3. #3
    Join Date
    Dec 2003
    Location
    Chitown Suburbia Illinois USA
    Posts
    23
    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.

    bgcolor="color"

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

    https://htmlcolorcodes.com/

  4. #4
    Join Date
    Jun 2000
    Location
    California
    Posts
    3,919
    Thanks Dash, I'll give it a shot. I have a great little app called Huey for the colors, it's probably 20 years old but it still works.

  5. #5
    Join Date
    Sep 1999
    Location
    Largo, Fl.
    Posts
    21,761
    Test post.
    "I have been wanting to grow my own food but I can not find any bacon seeds."

  6. #6
    Join Date
    Jun 2000
    Location
    California
    Posts
    3,919
    Test post worked! Thanks Steve.

    >"Wear your mask and try to blow out a candle. If you're successful the mask isn't that effective."
    If you were a virus looking out, you wouldn't see the slightest trace of mask fabric because you're only 0.1 - 0.5 microns.

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
  •