Closed
Bug 126141
Opened 23 years ago
Closed 23 years ago
doctype declaration ruin the html page.
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: hkashtan, Assigned: attinasi)
Details
Attachments
(1 file)
7.45 KB,
text/html
|
Details |
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.
Comment 1•23 years ago
|
||
Do your pages validate W3C XHTML ?
Use http://validator.w3.org/
Comment 2•23 years ago
|
||
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).
Comment 3•23 years ago
|
||
Reporter: please read http://www.mozilla.org/quality/bug-writing-guidelines.html
Also have a look at http://www.mozilla.org/quality/help/bugzilla-helper.html
Comment 4•23 years ago
|
||
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/
![]() |
||
Comment 5•23 years ago
|
||
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.
Comment 7•23 years ago
|
||
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
![]() |
||
Comment 8•23 years ago
|
||
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.
Description
•