I am using this link. http://lodev09.github.io/bootstrap-suggest/
On this page, when you start typing with @ characters in the first textbox, system shows a dropdown with certain values. I want to ensure, after every 20 characters system should wrap the text in the next line.
I tried adding following style to <li> tag but it did not helped.
word-wrap:break-word;
max-width:30px;
I would use something like:
li {
word-wrap: break-word;
max-width: 20ch;
}
It doesn't break the word at 20 characters but rather wraps the text when it hits the 20 character limit.
adding this class helped:
.dropdown.suggest>.dropdown-menu>li>a {
white-space: normal;
}
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