IlirAs IlirAs - 3 years ago 180
HTML Question

Breaking line in <td>

So, I'm displaying a table from my database to my view.

@model IEnumerable<test1.Models.Malfunction>
ViewBag.Title = "Malfunctions";


<table id="customers" class="table table-bordered table-hover">
<th>Date Reported</th>
@foreach (var malfunction in Model)

This property:


can contain a big amount of text which if too long will overlap the next property in line which is:


What I want to do is break the line after the width of the cell is reached so it doesn't overlap with the text in DateReported.

Answer Source


td {
  word-break: break-all;


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download