Click to See Complete Forum and Search --> : Change DIV float on the fly


thoand
05-12-2003, 06:58 AM
How can I change this div's float property with JavasSript?

<div id="imgBox1" style="float:left;">Content</div>

have tried this without success:

document.all['imageBox1'].style.cssFloat = 'right';


please help.

regards thomas a

Vladdy
05-12-2003, 07:04 AM
document.getElementById('imgBox1').style.float = 'right';