I enter 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 the comments are, notice that there are two with hidden part and do not break the line.