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:

http://jsfiddle.net/djxpu/

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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -