-1

I am having a hard time where this code

<div class = "col-md-8">
     <?php echo $row['actualpost']; ?>
</div>

is overlapping the column in a div. How can we multi line this?

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
LecheDeCrema
  • 377
  • 4
  • 20

3 Answers3

1

You can wrap your string using wordwrap() function like this:

wordwrap($row['actualpost'], 10, '<br>');

This function will wrap your long string into multiline.

Or

You can use this css for your div

word-wrap: break-word;
Neel Ion
  • 1,547
  • 1
  • 11
  • 14
0

try this it's work

<div class = "col-md-8">
 <?php echo $row['actualpost']; ?>
</div>
-1

In CSS :

.col-md-8
{
   width:100%;
   word-wrap: break-word;
}
Jacquie
  • 1
  • 3