Closed
Bug 156974
Opened 22 years ago
Closed 22 years ago
DOCTYPE causes CSS styles to break
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ted, Assigned: dbaron)
References
()
Details
I have the following snippets placed correctly on a page: ----my comments---- ============== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> ----at the very top of the page---- <link href="style.css" rel="stylesheet" type="text/css"> ----inside the HEAD tags---- <TH COLSPAN="2" ALIGN="left" class="general">The contents of your shopping cart is listed below.</TH> ----inside a working table---- ============== The CSS styles do not get applied to the page UNLESS I remove the DOCTYPE line. As soon as I remove the DOCTYPE line from the page the style sheets start working. Two identical pages except that one has a DOCTYPE and the other does not. http://www.tobsupport.com/digitalsoup/csstest1.mgi http://www.tobsupport.com/digitalsoup/csstest2.mgi
Assignee | ||
Comment 1•22 years ago
|
||
The stylesheet in question is being served as "text/html", and we don't understand the "text/html" stylesheet language. (Newer builds would have a warning on the error console about this.) You should make the server serve the stylesheet as text/css. See also http://mozilla.org/docs/web-developer/quirks/
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•