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

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -