Created
February 25, 2015 00:40
-
-
Save DivaVocals/f7e957cd182986f9246b to your computer and use it in GitHub Desktop.
How to force table cell <td> content to wrap
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
http://stackoverflow.com/questions/6666532/how-to-force-table-cell-td-content-to-wrap | |
table {border-collapse:collapse; table-layout:fixed;} | |
table td {word-wrap:break-word;} | |
Alternate solution: | |
td { | |
white-space: -o-pre-wrap; | |
word-wrap: break-word; | |
white-space: pre-wrap; | |
white-space: -moz-pre-wrap; | |
white-space: -pre-wrap; | |
} | |
table { | |
table-layout: fixed; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment