# CSS: Float won't stack without container width

**URL:** <https://forum.kirupa.com/t/css-float-wont-stack-without-container-width/325167>\
**Category:** web dev\
**Created:** [September 29, 2011, 4:52pm UTC](https://forum.kirupa.com/t/css-float-wont-stack-without-container-width/325167 "2011-09-29T16:52:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spyderfx](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@spyderfx](https://forum.kirupa.com/u/spyderfx)\
**Post date:** [September 29, 2011, 4:52pm UTC](https://forum.kirupa.com/t/css-float-wont-stack-without-container-width/325167/1 "2011-09-29T16:52:44Z")

</div>

I’ve made columns with CSS float a hundred times, but I’m trying to do it for a magento menu and can’t get it to work without setting the width of the container with the floats in it.

Does anyone have any ideas why that might not work?
