# Simple css problem

**URL:** <https://forum.kirupa.com/t/simple-css-problem/329446>\
**Category:** Uncategorized\
**Created:** [August 30, 2012, 11:21am UTC](https://forum.kirupa.com/t/simple-css-problem/329446 "2012-08-30T11:21:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [August 30, 2012, 11:21am UTC](https://forum.kirupa.com/t/simple-css-problem/329446/1 "2012-08-30T11:21:57Z")

</div>

hello - i have a div, and im filling it with divs which float left, so they stack 2 by 2. How do I enable the container div to ‘fill’ itself, rather than let the floats just overflow themselves!?

```auto
<div class="a">
  <div class='b'/>
  <div class='b'/>
  <div class='b'/>
</div>

```

css is

```auto

.a{
width:1000px; margin:0 auto;
background:red;
}
.b{
float:left;
width:500px;
height:100px;
}

```

so the divs stack - but there’s no filling red background. I thought putting ‘clear’ into .a would work but it does nadda. help yo?
