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!


1 Comment so far
Leave a comment

I don’t think about it … Maybe..Maybe

Comment by Denisko




Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>