I have the following table using bootstrap when there is too much text:
It pushes the column down and doesn't even come close to filling the whole area before pushing the size of the row... Plus the text isn't aligned with itself. I tried text-align in css to fix this but found no answers there.
Here is the code for the mess with no additions just generic:
<div class="container">
<table class="table">
<thead>
<tr>
<th>Event</th>
<th>Last Ran</th>
<th>Next Run</th>
<th>Options</th>
<th>Details</th>
</tr>
</thead>
<tbody>
@foreach (PIM5.Web.Models.Event evt in Model.Events)
{
<tr class=@evt.status>
<td><b>@evt.name</b></td>
<td>@evt.lastRan</td>
<td>@evt.nextRun</td>
<td style="max-width: 150px">
@if (evt.options > 0)
{
<button type="button" class="btn btn-success" onclick="doProcessStart('@evt.name')">Start</button>
<button type="button" class="btn btn-warning" onclick="doProcessStop('@evt.name')">Stop</button>
<button type="button" class="btn btn-info" onclick="doProcessEdit('@evt.name')">Edit</button>
}
@if (evt.options > 1)
{
<button type="button" class="btn btn-success">Force</button>
}
<button type="button" class="btn btn-danger" onclick="doProcessRemove('@evt.name')">Remove</button>
</td>
<td>@evt.description</td>
</tr>
}
</tbody>
</table>
<button class="btn btn-success" onclick="doAddEvent()">New Event</button>
</div>
This is what I would like it to do:
Fill the black box area first before pushing row down and never increase the row width and go off screen
Willing to use javascript or anything that will fix this problem.