Does there exist a mathematical relation between the font-size and the screen width so that there is no word break during resize of the width of the viewport/window?
For example, if I set the font size of a paragraph to 16px
, where the first line of the paragraph reads-
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
If I were to resize the width of my viewport, there would be a word break in case if the viewport width is small to accommodate the sentence because the font-size is set in px
units.
Now since the font-size increases/decreases during resize of width of viewport if the unit is set in vw
, I want to make sure there is no word break, imagine you're resizing an image with text on it. Is this possible to achieve?