Pretty sure if you float the parent, it will grow to fit the content.

Kevin


On Fri, Sep 16, 2011 at 8:40 AM, Stevio <redea...@freeuk.com> wrote:

> Hi is there a way to expand the width of a parent container so that it fits
> the contents of the floated elements within it?
>
> If I have two floated elements within a parent element, and the width of
> those two floated elements can change depending on their content, I would
> like the width of the parent element to expand to contain them.
>
> At the moment, the floated element would stick out the right of the
> container.
>
> Thanks.
> ______________________________**______________________________**__________
> css-discuss [css-d@lists.css-discuss.org]
> http://www.css-discuss.org/**mailman/listinfo/css-d<http://www.css-discuss.org/mailman/listinfo/css-d>
> List wiki/FAQ -- 
> http://css-discuss.incutio.**com/<http://css-discuss.incutio.com/>
> List policies -- 
> http://css-discuss.org/**policies.html<http://css-discuss.org/policies.html>
> Supported by evolt.org -- 
> http://www.evolt.org/help_**support_evolt/<http://www.evolt.org/help_support_evolt/>
>
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to