html - Div Resive To Fit Text -


this not necessary answer, it's more of problem i've encountered. let's have piece of text , want div element contains resize width property proportionally amount of text. there elegant way so? i've read min-width, doesn't work in case.

text typically flows fill it's container. don't think css going best way accomplish this. concept dynamic limitations of css. best way can think use javascript adjust width of div based on length of string contained within.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -