Topic: Nested Floats and other considerations Pages that link to <a href="https://ozoneasylum.com/backlink?for=24777" title="Pages that link to Topic: Nested Floats and other considerations" rel="nofollow" >Topic: Nested Floats and other considerations\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 01-23-2005 18:42 Edit Quote

Are nested floats valid or am I doing something wrong? I have a div tag with float-left defined, content flows around this nicely. When I add stuff inside of this div tag and use float and clear methods to control the layout, I think it is messing up the "outer" float-left. I'm not sure though...

If the above conclusion it true, I would have to think of this as a CON for CSS layout and design.
Would there be another / better approach?

THE INTENT:
The ability to design pieces of a website modularly. For example, a "Whats New" section. I should be able to design to my hearts content the HTML code that supports this and then place it anywhere within my HTML page.

Karl

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

IP logged posted posted 01-23-2005 22:08 Edit Quote

Just a quickie, once you add a float rule to an element you take it out of the normal document flow. This can for example cause some grief in designs based on relative positioning.
You can bring it back into the flow by adding a <br style="clear:left"> or right/both as you need.

This is a documented thing, don't have the source of it available though.
/Dan

{cell 260} {Blog}
-{ ?Computer games don?t affect kids; I mean if Pac-Man affected us as kids, we?d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.? (Kristian Wilson, Nintendo, Inc, 1989.) }-



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu