Answer the question
In order to leave comments, you need to log in
How do you know if two spans don't fit on the same line?
There are two spans with text, how do I know if their total text exceeds the width I need?
In more detail, that is -
div.span-container>span.first{Text}+span.second{Text}
Answer the question
In order to leave comments, you need to log in
Maybe in JS calculate the width? Nothing smarter comes to mind, because personally I don’t know css tools that could do this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question