Making a div float "middle" between a left floating div and a right floating div

I have 3 divs inside a container. I would like 'contentpaneLeft' to float left, 'contentpaneRight' to float right, and 'contentpaneMiddle' to stay evenly between the two. Ideally the middle one would expand vertically if necessary. Is there anyway to do this in CSS without resorting to a table? I've attached my current CSS.

Thanks,
John
#container{width:100%; height:644px; padding:20px; margin:auto; background: white;}
.contentpaneLeft{width:250px; height:333px; float:left}
.contentpaneMiddle{width:480px; margin: 0 auto; height:644px;}
.contentpaneRight{width:250px; height:333px; float:right}

Open in new window

LVL 1
John CarneyReliability Business Tools Analyst IIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David S.Consultant & Challenge SubduerCommented:
The simple way to do that would be to give "#container" a minimum width and make sure that both the left and right columns come before the middle one in the markup.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John CarneyReliability Business Tools Analyst IIAuthor Commented:
Perfect, Kravimir, thanks!

- John
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.