5 replies [Last post]
affpro1234
affpro1234's picture
Offline
newbie
Last seen: 11 years 23 weeks ago
Timezone: GMT-4
Joined: 2007-10-14
Posts: 2
Points: 0

the floated container drops past the bottom of page...I have done searches for the solution and found :after, but can't wrap my head around it...very confusing.

Can some one please show me.
My site is Regional Articles
and here is the style sheet

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 18 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

http://css-discuss.incutio.co

Life's a b*tch and then you die!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

But also check out option 2

But also check out option 2 second link Smile

Of course you may just try overflow:hidden on parent as long as IE6 has some form of hasLayout trigger e.g dimension set.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

affpro1234
affpro1234's picture
Offline
newbie
Last seen: 11 years 23 weeks ago
Timezone: GMT-4
Joined: 2007-10-14
Posts: 2
Points: 0

Hugo wrote:But also check

Hugo wrote:
But also check out option 2 second link Smile

Of course you may just try overflow:hidden on parent as long as IE6 has some form of hasLayout trigger e.g dimension set.

Thanks, that worked.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 18 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

They all work most of the

They all work most of the time, which is why I posted the link. The best option to use depends upon circumstances and personal preference, sometimes based (in my case) upon years of habit when not all the options were known about.

Life's a b*tch and then you die!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

As Roy says they all work

As Roy says they all work most of the time , the thing with float containment is that you must understand and be ready to swap the options as they each may have problems given certain conditions.

I just pointed out option 2 second link as it was linking back here to Tony's solution that has widespread adoption as one of the approaches that works and is useful to keep ready at the bottom of your styles.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me