I have a parent container which has a div containing text:
<div id="parent">
<div id="text"></div>
</div>
I have the following CSS rule for them:
parent{
clear:both;
background:#f3f3f3;
min-height:180px;
}
text{
float:left;
overflow:auto;
min-height:44px;
width:400px;
margin-left:10px;
margin-top:12px;
}
Thing is, the parent div grows only upto the length of the text. I want it to grow a bit beyond the text say 20% more. How do I achieve this?