Skip to content

Instantly share code, notes, and snippets.

@komplexb
Created September 5, 2014 15:36
Show Gist options
  • Save komplexb/43adbedc14df49ba3259 to your computer and use it in GitHub Desktop.
Save komplexb/43adbedc14df49ba3259 to your computer and use it in GitHub Desktop.
responsive: handling overflowing text in a table
.readmore-narrative p {
overflow: scroll;
max-height: 300px;
white-space: normal; // breaks lines as necessary to fill line boxes
}
<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