plasma800 — 2010-02-13T14:10:57-05:00 — #1
Anyone know how to make content flow AROUND an absolute positioned div instead of flowing behind it?
plasma800 — 2010-02-13T14:30:24-05:00 — #2
well i changed the template for a moment, but at anyrate, if you have an inline UL that has say 400 items in it and thena div tage absolute positioned in the middle of all that, my links run behind it, not around it. And I'm wondering if there is a fix for that?
luki_be — 2010-02-13T15:34:29-05:00 — #3
I'm afraid that can't be done : because the div is AP, it's removed from the flow and other elements don't know it's there because for them the div doesn't exist. They don't interact with it.
Try using float and position the div using margin and or padding.
plasma800 — 2010-02-13T16:04:23-05:00 — #4
I see. I'm trying the float and I can get it to the center of the page but the content will not flow around it. I must be hitting this from the wrong approach here.
ryanreese — 2010-02-13T17:39:01-05:00 — #5
Hi, to get it to flow around the float you must not float the content you want to wrap it around.
Aka if you have an <img> and you have a <p> text wrapping around it you could float the <img> but don't float the <p> :).
luki_be — 2010-02-13T17:50:38-05:00 — #6
Hi, i'm not sure if i follow, but do you want the links flow around the searchwrapper?
if so, float the wrapper left and give it the margins/padding you want. If you have enough content, it will flow around the wrapper.
Just briefly tested locally in Opera .... i'm in a hurry for the moment
ryanreese — 2010-02-13T17:55:18-05:00 — #7
Yes that will work everywhere, assuming no double float margin bug is happening on the wrapper :). That's the logic. Static content flowing around the floated element.
luki_be — 2010-02-13T19:26:25-05:00 — #8
I'm assume the OP knows about that bug and also how to contain floats (for future reference)
If not, the OP just can come back and get our input :lol: