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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -