Looking further...

Not even this works!
el.style.paddingLeft = '-100px';

Can it be that I have never set a negative margin with JS before? Hmm.


On Sep 11, 7:07 am, Bart Lewis <[EMAIL PROTECTED]> wrote:
> Using Prototype 1.6 RC0
> The following works as expected:
> $('someDiv').setStyle({paddingLeft: '100px'});
> $('someDiv').setStyle('padding-left: 100px');
> The following sets an empty style. Not expected:
> $('someDiv').setStyle({paddingLeft: '-100px'});
> $('someDiv').setStyle('padding-left: -100px');
> Tested in IE7 and FF2. The results are the same.

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to