Overriding previously set float using javascript in ie

Posted by wheresrhys on Stack Overflow See other posts from Stack Overflow or by wheresrhys
Published on 2010-04-08T10:29:47Z Indexed on 2010/04/08 10:33 UTC
Read the original article Hit count: 310

Filed under:
|
|
|
|

I've read this question to figure out how to set float:none on an element which already has float:right set with class.

I used element.style.cssFloat = "none", but this just added a new style property cssFloat which didn't over-ride the existing float:right. I've now fixed it using the adding/removing classes method.

But is there a way of over-riding existing float rules in ie without having to use classes?

© Stack Overflow or respective owner

Related posts about ie

Related posts about float