Floating elements in Internet Explorer using Javascript
1 Comment so far
Leave a comment
December 21, 2006, 9:12 am
Filed under: css, float, ie, internet explorer, javascript, quirks, web development
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
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>
I don’t think about it … Maybe..Maybe
Comment by Denisko October 4, 2009 @ 8:31 pm