Re: CSS inconsistent behaviour



To further the education of mankind, "Ian Davies"
<iandan.dav@xxxxxxxxxx> vouchsafed:

Hello
Thanks for the feedback
I sorted it out. I had created a dynamic page in dreamweaver from a
template and the following line is automatically placed at the top of
the html

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

All my other pages I have either not used dreamweaver to create them
or have deleted this line. On deleating the line the css style was
displayed properly.
Out of interest does anyone know what this line does exactly
Ian

"Neredbojias" <http://www.neredbojias.com/fliam.php?cat=alt.html>
wrote in message
news:Xns97C3493635FFFhttpwwwneredbojiasco@xxxxxxxxxxxxxxxx
To further the education of mankind, "Ian Davies"
<iandan.dav@xxxxxxxxxx> vouchsafed:

I have a class in a style sheet to make text x-large.
However it behaves differently on different pages. The text is
large on one page, as it should be but not on the other even though
the text on both pages uses the same style

anyone know why this happens?

Get a load of this. That line puts browsers into "standards mode" with a
somewhat-deprecated tag-set. The optimal method is to use the strict
doctype which is similar but more accurate. Not including a doctype at all
goads browsers into "quirks mode", -a sort of haphazard way of functioning
peculiar to the particular browser at hand. Ergo, all your other pages are
flawed and the one with the problem was acceptably correct.

--
Neredbojias
Infinity has its limits.
.



Relevant Pages

  • Re: Good in IE...bad in Firefox...lots of dev errors. Can anyone help?
    ... If you want to know how to do this in Dreamweaver you might want to ask in macromedia.dreamweaver available on Macromedia's news server forums.macromedia.com. ... Anyway you have to know that there is a fundamental difference between using Dreamweaver and using Flash or a layout software like InDesign: Flash and InDesign generate files in their proprietary formats for you, which can only be viewed with the software itself or with a proprietary viewer. ... HTML code is nothing but a way of structuring text, and there is CSS to suggest a layout. ... Some browsers, such as braille or text-only browsers, will give a totally different interpretation of your code than visual browsers. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: PHP and Dreamweaver recommendations needed
    ... >> Somebody on here recommended Dreamweaver with PHP. ... It'll upload to the browser you specified in the Dreamweaver ... I keep statistics on visitors' browsers. ... >> HTML kit or notepad and, of course, Google. ...
    (comp.lang.php)