Contents of <p> coming from the bank exceeds the limit of the div

Asked

Viewed 29 times

0

I made a site in PHP where most content comes from the database. On one of the pages, the content is exceeding the limits of the div and overlapping other content.

I’ve looked at the CSS and the limits are ok.

Following picture inserir a descrição da imagem aqui

That’s the code that’s inside a col-6

<h4>Potências</h4>
<p><?php echo $potencia; ?></p>

1 answer

2


Because the data is all together (no spaces) it is possible that it understands everything as a single word, so put the following line in your css of that tag <p>:

white-space: pre-wrap;
  • Thank you so much, it worked!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.