Topic: Gah, help with HTML

I have a tiny problem. I have gotten the knowledge that when you visit my n00by webpage with the Mozilla Firefox web browser, the background, in opposite to the hexadecimal colors I've written, is totally white. And some other problems are also quite visible when you compare the IE and Firefox.
I suspect there is a problem with the <doctype> and have tested a lot of variants. Does anyone know a doctype that might fix this problem, if it even is the doctype?

Darth Vader will chase you away with his lightsaber!
GalacticEmpire.se Forum

2

Re: Gah, help with HTML

Install FireFox and then install the validator plugin, and use that to validate your html. For starters, you have two <html> tags.

Re: Gah, help with HTML

bgcolor="390037"

should be

bgcolor="#390037"
i belive

Sorry. Unactive due to personal life.

4 (edited by StevenBullen 2007-11-30 18:26)

Re: Gah, help with HTML

Home page...
http://galacticempire.se/ Validator - 412 errors...

In fact so many errors that my computer (ie - old crap) had trouble opening the page for some reason and crashed.

5 (edited by Gotipe 2007-11-30 19:20)

Re: Gah, help with HTML

xD OMG, yeah, I tested out so many doctypes that I might've forgotten to remove copied text. I'll insert the old doctype and maybe the 412 errors will be gone. The W3 validator have I checked before and then it seemed to be okay. Must've changed now then, :S
EDIT: Have changed back to the old shit. But I can't see why the background is white. Is it possible, as said above, that it react in such a way if the "#" before the haxadecimal color number is not written?

Darth Vader will chase you away with his lightsaber!
GalacticEmpire.se Forum

Re: Gah, help with HTML

you also have 3 bodys now. but the background is sorted.

Sorry. Unactive due to personal life.

Re: Gah, help with HTML

background-color: {#390037}


that is the correct css code for background.

Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Gah, help with HTML

OK. Figured that Firefox maybe want the CSS to be a bit more exact than IE, everything clearly typed. So the bgcolor is okay? Thanks. Although, I don't know what specification should be made to separate the columns. (If you look at the the page with IE, there are three separate columns). hmm

Darth Vader will chase you away with his lightsaber!
GalacticEmpire.se Forum

9

Re: Gah, help with HTML

Gotipe wrote:

OK. Figured that Firefox maybe want the CSS to be a bit more exact than IE, everything clearly typed.

That's not needing it more exact, merely correct. Unless you code everything, (styles and html included), cleanly and correctly, you will be forever chasing your own tail with self inflicted problems.

I'll say it again. Run your code through the W3C validator, (it has one for CSS too), or via FF with the plugin, and clean up your code. Until you've done that, you've no idea what you can expect to see, or how the browser will interpret it.

10

Re: Gah, help with HTML

OK, sorry. But if you look here: http://jigsaw.w3.org/css-validator/vali … medium=all as I did, I did not see any problems.
But as it is my first webpage ever, and as stated in my first post in this topic, it might contain really many errors. I just tried to learn what those were. hmm

Darth Vader will chase you away with his lightsaber!
GalacticEmpire.se Forum

11 (edited by MattF 2007-12-01 09:58)

Re: Gah, help with HTML

Well, now you can make a start on the html then. big_smile

http://validator.w3.org/check?uri=http% … mp;group=0

12

Re: Gah, help with HTML

Yeah, suppose so. Have already fixed one error out of 499, xD But thank you for that validator. I don't know why the one I used didn't show those errors but anyway, thx.

Darth Vader will chase you away with his lightsaber!
GalacticEmpire.se Forum