CSS Text overflow not working because word-break
If a write this sentence in a width 90px and height 20px with text
overflow property:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
will display:
aaaaaaaaaaaaaa...
the text-overflow property will work, but if the sentence is:
T H I S I S A S E N T E N C E
it will display:
T H I S I S A
S E N T E N C
E
the line will break and the text-overflow property won't work.
How can I get this to work correctly?
No comments:
Post a Comment