HTML help needed

I’ve been working on setting up the custom weather page (wx.html) and I’ve run into a small but very annoying problem: Internet Explorer doesn’t seem to recognize my body tags. I have the background color set to black and the margins set to zero, as well as custom link colors, but none of these show up on my page.

By the way, I’ve tried the page in Netscape and it works perfectly – it seems to be a quirk in Internet Explorer that’s causing the problem.

If someone could please look at my source code and let me know what needs to be changed in order for the page to display properly in IE, please let me know.

Here is the link: http://www.n8binks.100megs12.com/weather/wx.html

Thanks. :slight_smile:

You might have to talk to Bill (Gates) about that. :lol: It looks just fine in Mozilla Firefox ! What version of IE are you using?

Take the # out of your code and it will work fine!! Color for black is 000000 in fact take all the #'s out of your colors and try that!!!

No luck, but thanks for the suggestion.

looks fine in mozilla too…

I moved the Body tag to the end of your Table almost the end of the file and now it works!!

It does work! How bizarre – I would have never thought of that, so thanks :slight_smile:

I always thought it was a necessity to have the body tag before any content – html rules must be getting lax.

it is because mozilla/firefox other gecko based browsers follow the rules “to the T”, while IE does what ever it wants :lol:

Looking at the code (as it is at the moment) I think you have two wrongs making a right. If you look at the start of the code you have two end of head tags, the last one is missing the “>”. I think if you fix that you can put the bgcolor tag back where it should be. [code:1] Weather Data For Coquitlam, BC, Canada

.heading {font-family: Arial; font-size: 18px; color: white;} .text {font-family: Arial; font-size: 14px; color: white;} .subtext {font-family: Arial; font-size: 10px; color: white;} td img {display: block;} </head [/code:1]

Actually, I believe I did that inadvertently while I was playing around with the body tag, but I’m glad you brought it up.

I did some playing around, and it turns out that the real problem was having two tags in the first place.

it is because mozilla/firefox other gecko based browsers follow the rules "to the T", while IE does what ever it wants :lol:

So much for gecko based browsers following the rules “to the T”.

Well, yeah, but according to Scott Collins (one of the fathers of Netscape and Mozilla) in this interview http://arstechnica.com/news/posts/1087357968.html “IE is a browser with no soul. I want it to be Mozilla because I think that people who care deserve a browser with a soul.”
I guess a browser with a soul doesn’t worry about a page with two heads :lol:

That’s funny nikoshepherd. :smiley: