P content from the bank exceeds the div limit

-1

I made a PHP site where most of the content comes from the database. In one of the pages, the content is going beyond the boundaries of the div and overlapping other content.

I have already looked at the CSS and the borders are ok.

Next photo

This is the code that is inside a col-6

<h4>Potências</h4>
<p><?php echo $potencia; ?></p>
    
asked by anonymous 25.10.2018 / 17:14

1 answer

1

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

white-space: pre-wrap;
    
25.10.2018 / 17:30