Forum Moderators: open

Message Too Old, No Replies

I just moved to a new server and suddenly all H1 tags are transparent?

Please help. Is it a server setting or must I assign color to H1 tags

         

hulahoop

5:50 pm on Jan 21, 2008 (gmt 0)

10+ Year Member



I just moved to a new server and suddenly all my H1 tags are transparent? As you can image, the H1 tags are the title to my page and now the cannot be seen as they are white in color. Do you think it is a server setting? It wasn't like this when I was on the old server. Please help.....

SilverLining

6:05 pm on Jan 21, 2008 (gmt 0)

10+ Year Member



Have you changed from say Windows to Linux server? I've noticed once on a *nix machine that the background colour was not white, so try specifying your background colour on say your body tag and see if that changes anything. Could be that your background colour is not set or it's interfering with your H1 colour.

hulahoop

6:43 pm on Jan 21, 2008 (gmt 0)

10+ Year Member



Thanks for your lead. I'll check it out later. I didn't know I have to set my background color. What is the code for that? I've never done that before. By the way, both old and new server are Windows. Would it be better to set the H1 tag as Black instead?

Xapti

6:53 pm on Jan 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you set either a background color or a text color, you MUST specify the other!
If you do not specify a color, that means use the browser's setting, which is the user's setting, which can be any color settings they want (purple and blue, red on black, etc.)

If you don't want your h1 white, make sure you specify it's color!
if that's still not working, giv ethe h1 an ID, and use that ID in the css. That will make it the most specific style, and override others which may somehow exist (or you could jsut remove the other style). Also if you want your background white, specify white.

All too often I see sites which use a mixture of default background color plus white as their pages background. I have no idea why so many of these top designers are so ignorant, but all I know is that it looks pretty ugly.

hulahoop

7:04 pm on Jan 21, 2008 (gmt 0)

10+ Year Member



I don't have my background color set and my pages are generally white with black words. Does this mean that I should set both the background color white and every text font black at my css file? With this the H1 should also be set as black at the css file?

So bottom line, set colors as the way you want it and not leave anything to default as you don't know what default is on users browser settings right?

SilverLining

11:11 am on Jan 22, 2008 (gmt 0)

10+ Year Member



hulahoop, you are better off specifying the colours (background & font) you want.

- Validate your CSS [jigsaw.w3.org] and you'll find that W3C might have some good suggestions to improve your stylesheet.

- Here's a rather useful read on W3C about Cascading [w3.org].

hulahoop

3:40 pm on Jan 22, 2008 (gmt 0)

10+ Year Member



Thanks a lot SilverLining and the rest that have chipped in to help. I'll work it out.

swa66

12:12 am on Jan 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have the same content it should render the same.

Are you using CSS external files?
Perhaps they're not sent with a mime type the browser recognizes (or perhaps not all of them got copied?)?

Are you using one of those "free" providers that add code to your pages? It might be their code that's doing it.
To check: compare what you get with "view source" in the browser with what you uploaded to the web server.

Good luck!