0
I insert several comments that are received from the bank with the code below:
$retorno = '<ul>';
while($row = mysqli_fetch_assoc($select)){
$retorno .= '
<li id="comentario-resposta-'.$_POST['id'].'" class="comentario-resposta">
<button class="btn btn-link">'.$row['nome_login'].'</button>
<p>'.$row['comentario'].'</p>
</li>
';
}
$retorno .= "</ul>";
css
.comentario-resposta p{
display: block;
position: relative;
width: 50%;
}
This image shows the problem, I have a modal where are the comments, realize that there are two stay with hidden part and do not break the line.
Try to use in this class:
word-wrap: break-word
?– UzumakiArtanis
No post imagens! See why in https://pt.meta.stackoverflow.com/questions/5483/manual-de-como-n%C3%83o-fazer-perguntas/5485#5485
– user60252
@Leo Caracciolo he did not post a code image making the help impossible, but the problem, so I believe that there is no problem.
– Adriano Back
@Adrianoback, fine, but to do tests we would have to create the modal HTML, but fortunately there was a beast that solved without the need to test!
– user60252