Page 1 of 1

Page display bug in Opera

Posted: Wed Apr 19, 2006 7:47 pm
by CrazyTerabyte
The page is displayed very bad in Opera. I know the reason: the page does not have a valid doctype. The first line of homepage source says:

Code: Select all

<!DOCTYPE HTML SYSTEM>
But this is an invalid doctype. Just change this line to:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
And Opera browser will display it much better.

The reason is that an invalid doctype will trigger "Quirks mode" in Opera, so it will try to "emulate" other browsers bugs. The complete description of how it works is decribed at Opera documentation.

Posted: Wed Apr 19, 2006 7:49 pm
by CrazyTerabyte
Interesting how the status page has a very similar "layout", but is not displayed bad, as homepage.
[edit: investigation done!]
Well, with no doctype, then the page is displayed correctly. With HTML Transitional doctype (a valid one), the page is displayed almost correctly. However with an invalid doctype (such as homepage), then the page is displayed very bad.

With my tests, the "Quirks mode" is triggered when the page has no doctype, and this way the page looks good.

Anyway, removing the (invalid) doctype is the easiest way to fix this.

Thanks.

Posted: Wed Apr 26, 2006 1:53 am
by Carlos
I've changed it, pleas tell me whether the problem is solved or not.

Posted: Wed Apr 26, 2006 2:45 am
by CrazyTerabyte
Oh, much better! Really thanks!

Only one more thing: you forgot to set background color to white, on homepage. When people (like me) modifies the default bgcolor of their browser, page looks just a bit uglier.

Anyway, thanks for photo resize, and for fixing the doctype issue. Page is much better now.