2 replies [Last post]
paCkeTroUTer
paCkeTroUTer's picture
Offline
Enthusiast
Melbourne, Australia
Last seen: 6 years 23 weeks ago
Melbourne, Australia
Timezone: GMT+10
Joined: 2003-06-27
Posts: 241
Points: 2

I have been pondering with this thought in mind for a while about the box model hack and thought I shall ask the more experienced members out here. The hack describes only details of the width being affected by the browser.

My question is do I need to implement the hack for the height of the Box as well ?

What is "Quirky Box Model" ?

http//melbourne.ug.php.net

insin
insin's picture
Offline
Enthusiast
Belfast, NI
Last seen: 16 years 24 weeks ago
Belfast, NI
Joined: 2003-05-07
Posts: 57
Points: 0

Re: Box Model Hack :: My Interpretaion

paCkeTroUTer wrote:
I have been pondering with this thought in mind for a while about the box model hack and thought I shall ask the more experienced members out here. The hack describes only details of the width being affected by the browser.

My question is do I need to implement the hack for the height of the Box as well ?

What is "Quirky Box Model" ?

Yes, you need to use the hack for box height as well - these are the aspects which are calculated incorrectly in the "Quirky" (or "Broken") box model.

See Microsoft's explanation of this in IE6 (look at the "Fix the Box Instead of Thinking Outside It" section) - what they have labeled the "CSS Width" is what the width attribute should mean according to the CSS specifications, while what they have labeled "Internet Explorer width" is what width means in IE5 and in IE6's quirks mode.

"Quirks Mode" in browsers generally means a mode in which rendering/parsing is more lenient in order to compensate for the tag soup which passes for HTML on the majority of the internet. By specifying a valid doctype, you turn Quirks Mode off and Standards Compliance mode on (at least in IE6 and Mozilla Firebird, but I'm sure Opera probably has this too). It's not always related to the box model (the "Internet Explorer width" version of which is just completely wrong according to the CSS specifications).

A Pedant Writes...
Into the mountain,
I will fall.

paCkeTroUTer
paCkeTroUTer's picture
Offline
Enthusiast
Melbourne, Australia
Last seen: 6 years 23 weeks ago
Melbourne, Australia
Timezone: GMT+10
Joined: 2003-06-27
Posts: 241
Points: 2

Box Model Hack :: My Interpretaion

Thanks. That helped me clear my doubts. Laughing out loud

http//melbourne.ug.php.net