This is a discussion on "Floated Divs dont expand centered div in firefox" within the Web Page Design section. This forum, and the thread "Floated Divs dont expand centered div in firefox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Floated Divs dont expand centered div in firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Floated Divs dont expand centered div in firefox
Okay basically I have a wrapper div which holds everything and centers it. It has borders left and right which are supposed to go all the way down the page. My problems is my main content is two floated divs inside a main div. These floated divs dont expand the wrapper div in firefox so the borders don't go all the way down. How in firefox do I get the wrapper to expand all the way down to hold the floated contents?
I am using margin:0 auto for centering and for floated am using float |
|
|
|
||||
|
Re: Floated Divs dont expand centered div in firefox
Sounds like you need to put a clearing div underneath the two floating items.
Visit here for more info: http://ryanfait.com/articles/2006/10...ng-css-floats/ |
|
|||
|
Re: Floated Divs dont expand centered div in firefox
Thanks that will really come in handy. Would really like some articles like that for my new site.
|
|
||||
|
Re: Floated Divs dont expand centered div in firefox
Quote:
Will be adding a feature for that as soon as I work out the specifics.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: Floated Divs dont expand centered div in firefox
Cool. I'm writing a sticky footer example now. It's quite nice because there are no hacks involved, but there's one minor bug I can't work out. I'll get there soon, though
|
|
||||
|
Re: Floated Divs dont expand centered div in firefox
One way to simulate the effect of 100% height is with a background image on the body {} so you could put your border etc on that graphic and place your divs accordingly.
something like: background: #FFF url("foo.jpg") repeat-y center top; Hope that makes sense. As for sticking a footer at the bottom of the page, there are examples of that but its not the "easiest" thing in the world to get right.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| firefox center div |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] DIVs and Firefox - help! | Emzi | Web Page Design | 4 | Oct 4th, 2007 10:42 |
| Divs in IE and Firefox | Slimane | Web Page Design | 6 | Sep 24th, 2007 14:07 |
| IE 7 vs Firefox & extra space between divs | Kurt | Web Page Design | 4 | Sep 20th, 2007 21:26 |
| Problem with Firefox divs... | WillRevera | Web Page Design | 3 | Aug 31st, 2007 16:29 |
| Floated DIV being pushed down in Firefox | T34 | Web Page Design | 4 | Jul 20th, 2007 11:57 |