Closed Bug 126141 Opened 23 years ago Closed 23 years ago

doctype declaration ruin the html page.

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: hkashtan, Assigned: attinasi)

Details

Attachments

(1 file)

Hi, Having doctype declaration at the beginning of an html page (using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1- transitional.dtd">) makes all the html controls lose their position (using absolute positions) and appear in the first page line. Is there any workaround? I do need the doctype declaration on my pages. Thanks.
Do your pages validate W3C XHTML ? Use http://validator.w3.org/
Reporter: Can you provide a testcase where we can see the problem? This problem is most likely because of invalid HTML code in your page. See http://mozilla.org/docs/web-developer/quirks/ for differences between standards compliant mode (with the XHTML 1.0 DOCTYPE) and quikrs mode (without the DOCTYPE).
most probably is malformed xhtml or invalid css, besides check your page with validator.w3.org, i suggests you to check with CSS validator also :) http://jigsaw.w3.org/css-validator/
Hadar, most likely you did not put units on your lengths in the CSS.
This file pass the w3c validation, but still display wrong. thanks.
As bzbarsky said, you didn't put units on your lengths in the CSS. "left: 424; top: 19;" is not valid CSS. You need to write "left: 424px; top: 19px;" instead. Marking INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
http://jigsaw.w3.org/css-validator/validator-uri.html is what you want to be validating with. Note that the page fails. verified invalid.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: