Created
February 24, 2017 13:08
-
-
Save marcoskubis/4bf343928703824d85d0ec1b301f3a63 to your computer and use it in GitHub Desktop.
Bootstrap table ellipsis
This file contains 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.table-ellipsis tbody td { | |
max-width: 100px; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap | |
} |
Show text-overflow on cell hover:
.table.table-ellipsis tbody td {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap
}
.table.table-ellipsis tbody td:hover {
text-overflow: clip;
white-space: normal;
word-break: break-all;
}
Thanks! ^_^
thanks bro manyy hihi
Gracias me ayudo mucho, saludos desde Ecuador.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!
Suggestion: You could enhance it using CSS pseudo class active to simulate “onclick/selection”.
After onclick/selecting the text, it could expand itself and showing the whole content.
If users decide to click/select another cell/value, the ellipsis could be applied again.