Hi Liorean, Thanks for the help, although I couldn't make it work with exactly what you'd put, so I changed it to just if (elm.style.cssFloat != 'none') { blah blah } and it works perfectly now. Thanks again, Iain ------------------------------ Date: Sat, 15 May 2004 14:05:26 +0200 From: liorean <liorean at f2o.org> To: "thelist at lists.evolt.org" <thelist at lists.evolt.org> Subject: Re: [thelist] Javascript Float Detection Message-ID: <40A60786.1070806 at f2o.org> In-Reply-To: <000001c43a6e$21472220$35262152 at caligula> References: <000001c43a6e$21472220$35262152 at caligula> Content-Type: text/plain; charset=us-ascii; format=flowed MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: list Reply-To: "thelist at lists.evolt.org" <thelist at lists.evolt.org> Message: 3 Iain Gardiner wrote: > I am an utter Javascript noob so I need a little help on something > that may be ridiculously simple. > > I need to use an if() loop to determine whether or not a specific > element has a float applied to it. Is this possible and, if so, what > would I put in the brackets to do this? if(elm.style.cssFloat&&elm.style.cssFloat!='none') /* code */; -- David "liorean" Andersson ViewStyles, ViewScripts, SwitchStyles and GraphicsInfo bookmarklets: <http://liorean.web-graphics.com/> Hangouts: <http://codingforums.com/> <http://yourmusicforums.com/> ------------------------------