HighDots Forums  

Alternate Box Model Hack

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Alternate Box Model Hack in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Mlynarczyk
 
Posts: n/a

Default Alternate Box Model Hack - 01-03-2005 , 05:56 PM






Hi,

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

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?





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.