470,849 Members | 1,213 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Alternate Box Model Hack


While reading up a bit on the famous Box Model Hack, I found this solution

selector {
property: standard-value !important;
property /* IE<6 */: ie-box-model-value;

It will feed "ie-box-model-value" to IE<6 and "standard-value" to all
others. This seems to me to be the most elegant solution to the box model
problem but I wonder where possible drawbacks might be. One website
mentioned that this code would "break Konqueror on Linux". Does it mean
Konqueror gets the wrong one of the two values or will it crash or
something? Also I have noticed that Opera 7, in its small-screen mode (only
there!), assigns too small widths (when this hack is used on widths), but
I'm not sure if it is really caused by this hack. (It seems to ignore any
widths specified later for this selector, except for width: auto - always
with "!important" of course.)

Any comments?

Jul 21 '05 #1
0 1210

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Chuck Spears | last post: by
2 posts views Thread by william c | last post: by
6 posts views Thread by B McDonald | last post: by
4 posts views Thread by Vigil | last post: by
2 posts views Thread by CMAR | last post: by
11 posts views Thread by skeeterbug | last post: by
4 posts views Thread by rfox | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.