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

12-31-2012, 01: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. :(

12-31-2012, 01: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).