...

View Full Version : Prevent center DIV from resizing to max width?



kenshn111
12-31-2012, 12:47 AM
I have 3 divs:
-Float:left (fixed width)
-margin:0 auto; (uses min-width and max-width)
-Float:right (fixed width)

I wanted the middle DIV to fill the space between the other 2 DIVs however the middle DIV always go to the max width. (therefore it goes below the other 2 DIVs) How do you prevent it from doing that?

Advanced Sorry. :(

Excavator
12-31-2012, 12:57 AM
Hello kenshn111,
Maybe that auto margin doesn't do what you think it does. have a look at this example (http://nopeople.com/CSS%20tips/simple3column/index.html).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum