More Questions Than Answers

Dan Atrill's blog site

JavaScript setting css float

Where object is myLHS = document.getElementById(“lhs”);
trying to use object.style.float = ‘right’ wasn’t working.
but using setAttribute does (at least it does in Firefox on a PC):
myLHS.setAttribute(‘style’, ‘float: right’);
There’s more on this here: Setting Float via JS – OZONE Asylum, home of the Mad Scientists
See also the quirksmode entry on JavaScript – Get Styles

Tue, August 28 2007 » Web developing

Leave a Reply

*