I am just like this guy https://stackoverflow.com/questions/20430641/word-break-issue-in-css
I am experiencing everything he said, I also tried all sort of things, but unfortunately nothing helped.
That question didn't have a helpful answer. So, I am posting it again.
I am using codeigniter and this is how I echo my paragraph:
<div class="review-content">
<p><?php echo $review->content ; ?></p>
</div>
The output would like this:
A very clean hotel with a great st
aff and very helpful. The restaura
nt is classic but the food is very
You need to use word-break
div {
width: 210px;
word-break: break-all; /* this is probably set somewhere in your code */
background: #f5f5f5;
}
div.no-break {
word-break: 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