Previous Message
Next Message

Re: [css-d] IE tweaks

Sent by Brett Merkey on 26 January 2002 09:09

----- Original Message ----- 
From: "Liorean" [EMAIL-REMOVED]>
| To fix the box-model, I need a way to handle margin, padding, border. How 
| should I do to catch both those when declared by "margin: blah;" etc. and 
| when they are declared by "margin-left:blah; margin-right:blah;" etc? I 
| fetch the values out of "<element>.currentStyle".
| Second, how do I through JScript set an expression in CSS to handle 
| positioning? I've heard of getExpression/setExpression, function setting or 
| setting a value of "expression(blah);" in CSS.

For adjustments of the change in IE's handling of the box model, have you
tried the non-scripting solution as outlined at:

You will have to refer to a Microsoft document for help in constructing
expressions within CSS. Altho I work exclusively in IE5+, I would not
recommend using CSS expressions. I have always found that whatever
IE CSS expressions can do can be reproduced just fine with plain
CSS and once in a while with JavaScript.

For instance, dynamic positioning should be completely controllable
with normal CSS and light scripting. I find the result to be easier on
client browser resources.

Previous Message
Next Message

Message thread:

Possibly related: