Background color that ALL browsers see and recognize....
So you have a simple table. You want it to have a certain background color. This is easily achieved of course, but with so many browsers out there, and some html code being "de-valued" (whatever that really means), what is the most fullproof way to add different background colors to tables, and be confident that everybody is seeing the same thing?
Should you still use html code like below? (in bold)
Guys, thank you very much for taking the time to reply .... but..
I'm not looking for how to do it, or different ways to do it necessarily. What I am really asking here, is which of these methods is the most compatible way to do it. Knowing that some browsers are finicky, and some don't support certain things as well as others.
So between regular bgcolor tags, using a background image, or css, which is going to ensure the best overall compatibility? Which is going to produce the most consistent results across the wide variety of users?
easy. choose the color you like as the BG color of the table and make a 1x1px gif image with that color. then specify the image the bgsource, it will stretch of course, but since its consistent, it will just fill the table with the color you choose. and if you export it the right way, it can be a few bytes in size so doesnt effect page load times.
IWDN - Really smart web developers... and me!
More than any time in history mankind faces a crossroads.
One path leads to despair and utter hopelessness, the other to total extinction.
Let us pray that we have the wisdom to choose correctly.
CSS is the best, and most supported, route to go down. Don't use tiny images and tile them, they take up more memory as well as slow the site down of any scrolling. If you need a solid color, use the CSS and define a table background.
I think that bgcolor (html) and background-color (css) are both good solutions and no one is better than the other.
Just stay in the webcolors.
You'll never get the same color in all computers, cause different monitors show different colors plus users can adjust their brightness and contrast and all those settings. There is no much you can do about this.