I'm working on a c# web application and in one sections we show user comments on little boxes. It seems that one person wrote a long string causing the box become bigger.
How can I avoid long words to fit its container size?
For example, if the user writes the following
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
and my box has a shorter width
I should make it fit.
Use the css property word-wrap: break-word
. That will force long lines to wrap onto the next one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With