My parent Div needs to extend with all the children. The children divs are multiple buttons that's x position is incremental.
Example
div id="Parent"
div id="Child" /div {X-position : 90}
div id="Child2" /div {X-position : 180}
/div
Any Ideas will be much appreciated
You can do it by setting the
display: inline-block;
ordisplay: table;
to the parent div, and then it will fit the size of its children:You can see the demo here: