-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,738
  • 21
  • 105
  • 131
LecheDeCrema
  • 392
  • 5
  • 21

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;
Crunch Much
  • 1,537
  • 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