Need serious CSS help - Float containers
Moderator: General Moderators
Need serious CSS help - Float containers
Okay, this is doing my head in, i can normally hack around and get they layout to work as i wish, but not this time!!!
Anyway.
Take a look at this layout (simplified).
You see the left and right menu, whenever they expand, i want their container to expand around the floats, which in turn will push the footer down.
Please help before i throw my computer through the window.
Thanks
Anyway.
Take a look at this layout (simplified).
You see the left and right menu, whenever they expand, i want their container to expand around the floats, which in turn will push the footer down.
Please help before i throw my computer through the window.
Thanks
- Skittlewidth
- Forum Contributor
- Posts: 389
- Joined: Wed Nov 06, 2002 9:18 am
- Location: Kent, UK
- Skittlewidth
- Forum Contributor
- Posts: 389
- Joined: Wed Nov 06, 2002 9:18 am
- Location: Kent, UK
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
I Think This Would Work
=================
ReplaceBy
=================
Replace
Code: Select all
<div id="content">Code: Select all
<div id="content" style="width: 425px; height: 447px;">I am sure the problem has been solved already by clearing the floats (as I mentioned). Isn't it JayBird? Or else, what problem do you still have?The solution neel_basu gives works, but is very restrictive, as the content cannot expand anymore if you give it a fixed height (only in IE<=6 but that's a bug).
- Skittlewidth
- Forum Contributor
- Posts: 389
- Joined: Wed Nov 06, 2002 9:18 am
- Location: Kent, UK