U
UKuser
Hi folks,
I just wanted to share a major discovery (for me) which after about 5
years of web site building I didn't realise.
If you use the HTML doctype for Transitional HTML then the page will
render in Quirks mode (where the box model is broken). However (and
this is the BIG discovery (for me)) - if you use a Strict HTML doctype
then the page actually renders in Standards mode.
I've never really spent long playing with DOCTYPEs to discover this
and maybe just havent read that much about it - still applying hacks
to my CSS to get it working with Transitional.
I've read about triggering Quirks mode - but never realised (that
including IE7) this could be done from the DOCTYPE parameter.
Maybe I'll have to rethink my doctypes!
A
I just wanted to share a major discovery (for me) which after about 5
years of web site building I didn't realise.
If you use the HTML doctype for Transitional HTML then the page will
render in Quirks mode (where the box model is broken). However (and
this is the BIG discovery (for me)) - if you use a Strict HTML doctype
then the page actually renders in Standards mode.
I've never really spent long playing with DOCTYPEs to discover this
and maybe just havent read that much about it - still applying hacks
to my CSS to get it working with Transitional.
I've read about triggering Quirks mode - but never realised (that
including IE7) this could be done from the DOCTYPE parameter.
Maybe I'll have to rethink my doctypes!
A