Created
September 5, 2014 15:36
-
-
Save komplexb/43adbedc14df49ba3259 to your computer and use it in GitHub Desktop.
responsive: handling overflowing text in a table
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
.readmore-narrative p { | |
overflow: scroll; | |
max-height: 300px; | |
white-space: normal; // breaks lines as necessary to fill line boxes | |
} |
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
<div class="table-responsive"> <!-- bootstrap class --> | |
<table class="table table-striped table-hover results-table"> | |
<tr class="readmore-narrative"> | |
<td colspan="8"> | |
<p></p> | |
</td> | |
</tr> | |
</table> | |
<div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment