Whether my text is short or long, I always want to ensure that it remains within two lines by defining the width of my div.
Short Text
+-------------------------+
| Short text goes here |
| Short text goes here |
+-------------------------+
Long Text
+----------------------------------------------+
| Long text goes here long text goes here long |
| text goes here long text goes here long text |
+----------------------------------------------+
Therefore, regardless of the length of the text, I aim to keep it within two lines in terms of width. Is there a way to achieve this using CSS, or would jQuery be a better option?