I have a table with 3 columns
********************************************************** * Name * Description * Actions * ********************************************************** * John * Lorem ipsum bla bla etc eetc * B1 * * * * B2 * **********************************************************
It happens that the last column first carries its contents, and then the description column. I would like the Description column to turn around first. I tried adding white-space: nowrap, but then the Actions column never wraps around.
How does the browser determine which column to wrap?
I want column 3 to be the last. Therefore, until the Description column is fully wrapped, it should display the buttons on the same line. When there is no more space, the column may turn around.
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css');
<table class="table"> <thead> <tr> <th>Entity</th> <th>ID</th> <th>Description</th> <th>Actions</th> </tr> </thead> <tbody> <tr> <td>Customer</td> <td>9004</td> <td>null, asdjkajk, kkkjk, kjkk, kkk, 898989</td> <td> <button class="btn c-btn"> <span class="glyphicon glyphicon-pencil"></span> </button> <button class="btn c-btn"> <span class="glyphicon glyphicon-remove"></span> </button> </td> </tr> </tbody> </table>
html css
algiogia
source share