I’m working on a Forum project using Laravel 9 and for posting a new question, if I enter the text like this (without pressing Enter or adding </br>
):
Then the body of the question will be shown like this:
And as you can see it overlaps the box that is in it and goes out which is wrong!
And this is the code for showing the body:
<div class="topic__text BYekan">
<p>
{{ $question->que_body }}
</p>
</div>
So what’s going wrong here?
How can I solve this issue?
2
Answers
You need styling, specifically
If you are using one of laravel starter kit, you must be using tailwind.
Here you can find class that most suitable to your need.