Setting background color in html
Results 1 to 11 of 11

Thread: Setting background color in html

  1. #1
    Join Date
    Jun 2000
    Location
    California
    Posts
    4,124

    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,685
    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
    42
    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
    4,124
    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
    22,318
    Test post.
    If you're happy and you know it......it's your meds.

  6. #6
    Join Date
    Jun 2000
    Location
    California
    Posts
    4,124
    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.

  7. #7
    Join Date
    Mar 2022
    Posts
    1

  8. #8
    Join Date
    Jun 2000
    Location
    California
    Posts
    4,124
    Thanks but that post is over a year old and I've long since given up and gone to WIX.

  9. #9
    Join Date
    May 2022
    Posts
    2
    Do you want to do this for the whole site or just for a specific page on your site?

  10. #10
    Join Date
    May 2022
    Posts
    2
    Quote Originally Posted by mignonneme View Post
    Do you want to do this for the whole site or just for a specific page on your site?
    I believe WordPress experts can help you achieve the desired shade of the page. Ask the experts how to paint the site's background in the colour you want. I think that during a consultation with them, you'll be able to understand what mistake you are making when setting background colour in HTML. In addition, I think the HTML language is simple enough for you to quickly figure out everything after their brief analysis of your site. They'll make a free diagnosis. If you don't figure it out yourself, ask the experts about it.

  11. #11
    Join Date
    Jan 2023
    Posts
    3
    This is usually the job of website design development. Which is usually done by setting the color name or code(HTML) of your choice.

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
  •