Change Float style with Javascript

If you would like to change the float style of some element using javascript, then use the following.


var element = document.getElementById( 'some_element_id' );

element.style.cssFloat = 'left';

One thought on “Change Float style with Javascript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s