I\'m looking for a solution to fit a child div into it\'s parent\'s width.
div
width
Most solutions I\'ve seen here are not cross-browser com
If you put position:relative; on the outer element, the inner element will place itself according to this one. Then a width:auto; on the inner element will be the same as the width of the outer.
position:relative;
width:auto;