Hello everyone:) I am using a <div>
to contain words, with a maximum length of 6 characters. My goal is to move to the next line if the word length exceeds 6 characters, but drop down to a new line if the word length is exactly 6 characters.
For example:
Here is what I currently have:
text = "aaaaaaa"
|aaaaaa|
|a |
text = "hi bbbbbb"
|hi bbb|
|bbb |
This is my desired outcome:
text = "aaaaaaa"
|aaaaaa|
|a |
text = "hi bbbbbb"
|hi |
|bbbbbb|