tzzz


Floating elements in Internet Explorer using Javascript
December 21, 2006, 9:12 am
Filed under: css, float, ie, internet explorer, javascript, quirks, web development

Internet Explorer strikes again.

To float an element using Javascript in pretty much any browser other than IE you would write:

element.style.cssFloat = 'left';

Can you imagine though that this is not the way it works in Internet Explorer? In IE you’ll have to write the following:

element.style.styleFloat = 'left';

IE for the win!


Leave a Comment so far
Leave a comment



Leave a comment