Floatbox does not support quirksmode : my doctype seems OK

Page: 1

Author Post
Member
Registered: Aug 2014
Posts: 3
Hello,

I have the message "Floatbox does not support quirksmode ..." on this page:
<admin>
link removed
</admin>

The doctype seems fine :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

I have other pages with same doctypes, and which accept same doctype without any problems.

Help please ...

Thanks,
Vince
« Last edit by admin on Mon Aug 11, 2014 10:12 am. »
Administrator
Registered: Aug 2008
Posts: 3382
Nope, that's not a valid doctype declaration. It's missing the dtd path component. Any page that uses it as presented will be rendered in quirks mode.

The correct and complete HTML 4.01 Transitional doctype is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

But really, there is no good reason to use anything but the simple HTML5 doctype declaration on any and all pages. The simple <!DOCTYPE html> will direct all browsers to use standards mode. Drop all that other stuff that serves no purpose and can only create problems if it is incorrect.
Member
Registered: Aug 2014
Posts: 3
First of all, thanks for the reply (so fast)

I had already tried <!DOCTYPE html>, but my page become completely upside down.

No, I have tried with :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


result is unfortunately the same :
see : http://www.fizzyexpress.pro/fxpm/reg/reg000.php?lang=fr

My code is quite simple, what's the problem ?

Thanks,
vince
Member
Registered: Aug 2014
Posts: 3
seems that more space is added between elements
Administrator
Registered: Aug 2008
Posts: 3382
Sorry, but I can't get involved with sorting out your page code.

Unfortunately, you've built your page(s) to render in quirks mode with an invalid doctype. Standards mode lays things out differently than does quirks mode.

You can fix your pages to render correctly in standards mode and use Floatbox on them, or you can leave them in quirks rendering with the invalid doctype and not use Floatbox. That's it for choices.

Page: 1