You are here: Re: CSS inconsistent behaviour « HTML « IT news, forums, messages
Re: CSS inconsistent behaviour

Posted by Neredbojias on 05/17/06 02:33

To further the education of mankind, "Ian Davies"
<iandan.dav@virgin.net> 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@208.49.80.251...
>> To further the education of mankind, "Ian Davies"
>> <iandan.dav@virgin.net> 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация