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

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

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

ios - CFRelease causing crash in iPad application -