Last active
August 29, 2015 14:23
-
-
Save clevertonh/3c5f2d63c90b43456c33 to your computer and use it in GitHub Desktop.
Classe para não quebrar a linha em uma TABLE usando o Twitter Bootstrap, quando chega ao final da linha adiciona pontos.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table class="table table-ellipsis"> | |
| <thead> | |
| <tr> | |
| <th>#</th> | |
| <th>First Name</th> | |
| <th>Last Name</th> | |
| <th>Username</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <th scope="row">1</th> | |
| <td>Mark</td> | |
| <td>Otto</td> | |
| <td>@mdo</td> | |
| </tr> | |
| <tr> | |
| <th scope="row">2</th> | |
| <td>Jacob</td> | |
| <td>Thornton</td> | |
| <td>@fat</td> | |
| </tr> | |
| <tr> | |
| <th scope="row">3</th> | |
| <td>Larry</td> | |
| <td>the Bird</td> | |
| <td>@twitter</td> | |
| </tr> | |
| </tbody> | |
| </table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .table-ellipsis { | |
| table-layout: fixed; | |
| } | |
| .table-ellipsis td { | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment