Java Notes From My Desktop

Tags - Categories : All | Articles | Book Reviews | CSS | Java | Javaranch | Javascript | News | Opengl | Opinions | Personal | php

I found out the hard way today that in order to set the float style for an element in javascript, you can't use:

element.style.float

because float is a reserved word, bla bla. Fine and dandy. So I look up what I need to use instead. Found the standards way:

element.style.cssFloat

But wait...It doesn't work in IE. In IE I have to use their type:

element.style.styleFloat

IE is such a POS. Anyway, thought I might save someone else from having to dig around for it.