Closed Thread Icon

Topic awaiting preservation: Positioning Busted on XHTML (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27444" title="Pages that link to Topic awaiting preservation: Positioning Busted on XHTML (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Positioning Busted on XHTML <span class="small">(Page 1 of 1)</span>\

 
bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 02-04-2006 18:29

So I'm messing with some draggable divs (Firefox only, this is actually for an FF extension).

And I've noticed that my code breaks on XHTML transitional doctypes.

Any idea why and what I can do to fix this?

Works Fine
Doesn't like me

Thanks!



.:[ Never resist a perfect moment ]:.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 02-04-2006 22:06

I suck at JavaScript, but considering you have some bad errors in both your markup and your CSS...well I think the problem is most likely overlooking the requirements of valid CSS.

For instance, if you fix all the number values within the JavaScript to have 'px' on the end, you'll at least get the yellow box back in the same placement and with the same dimensions as the working page.

My guess is that the scripting doesn't take into account that dimensions must have a unit specified, so when it tries to (let's say we've fixed the starting values) modify the coordinates 200px & 300px to something new, it drops the px and the CSS engine goes "wtf...no, can't do anything with that, bro, not in standards mode".

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 02-04-2006 22:13

Actually that did it, I needed the px in there on everything.

Thanks!



.:[ Never resist a perfect moment ]:.

(Edited by bitdamaged on 02-04-2006 22:13)

« BackwardsOnwards »

Show Forum Drop Down Menu