Click to See Complete Forum and Search --> : Clear for absolute positioning?


hoelzro
01-31-2007, 03:17 PM
When using the float property, you can use clear to make sure the sides of an element are clear. Is there a way you can do this for position: absolute?

3Pinter
01-31-2007, 03:43 PM
Well,

As far as I know it is of no use to 'clear' an absolute position. Absolut positions means no relation with other positions...

You can however change the z-index of absolute positions.... (so which one overlaps the other...)


3Pinter

WebJoel
01-31-2007, 05:59 PM
I beleive that 3Pinter is correct. I have never had to use a 'float' on anything 'absolute', as it is out of the document flow anyway so there isn't any reason to move it out of the way of the next element...

calliepeck
02-19-2007, 11:06 PM
Check out shauninman.com for his javascript workaround for clearing absolute positions (javascript determines the height of your tallest abs. div and aligns the container). It's a hack, but it's a good one for keeping your layouts from breaking like they might with floats.