Forum Moderators: open

Message Too Old, No Replies

bgcolor strangeness

server makes a difference in color rendering?

         

sottwell

8:09 am on Feb 12, 2004 (gmt 0)

10+ Year Member



I have the same pages on a Mac OS X/Apache server at localhost for development and on a remote Linux/Apache hosting service. The same markup renders differently:

<table border="0" cellspacing="0" cellpadding="1" bgcolor="#033" width="100%">

works as expected (dark green) when served from the localhost, but shows black when served from the remote host. Four different browsers (Opera, Firefox, IE, Safari) on the Mac client have the same behavior. Viewing the source shows no difference in the markup on the client. Changing the color code to #003333 on the remote site fixes the problem. What is happening here?

tombola

11:34 am on Feb 12, 2004 (gmt 0)

10+ Year Member



From w3.org:

The use of HTML elements and attributes for specifying color is deprecated. You are encouraged to use style sheets instead. [...]
Colors specified with the BODY and FONT elements and bgcolor on tables look different on different platforms

[w3.org...]

benihana

12:13 pm on Feb 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it could be worth trying the full #003333

ergophobe

7:32 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No, the server can not affect this. If the source code looks identical, it will be the same. All color is rendered on the client level and that goes for HTML, CSS, gif, jpegs, dust and coffee stains. The server is sending 1s and 0s and has no idea whether what it is sending is a color or a word.

You don't have a different DOCTYPE by any chance do you?

And as folks have already mentioned, you shouldn't be designating color anywhere in your HTML anyway.

Tom