css - Stretch / shrink parent div to fit content's width -
i trying trying make div's width wide it's content. here's fidle show mean:
i want blue area wide white. tried float:left
, display:inline-block
, won't work position:absolute;
. workarounds?
if want white area fit blue parent, you'd set width of white 100% #x{ width:100%; }
Comments
Post a Comment