I am looking to create a flexible div
that expands based on its content. Inside this div
, there are two floated left div
s with fixed widths. These inner div
s should also expand according to their text content. To clear the floats, there is another div
within the parent div
. Even though all elements are relatively positioned, the parent div
does not automatically expand to fit the child elements. How can I make sure the parent div
expands as needed? You can view the example at http://jsfiddle.net/Cupidvogel/y79NS/1/.