Bosquets Bosquets - 1 year ago 100
CSS Question

Table wider than Bootstrap column container

Can someone explain to me why is this happening? I've wrapped my content inside Bootstrap responsive divs and my table which is inside that div has bigger width than container.

<div class="row">
<div class="col-md-4">
<table class="table">
<% @user.each do |user| %>
<td><%= user.content %></td>
<% end %>

The problem is if I have one really big content with a lot of characters, table becomes much wider than it's container
<div class="col-md-4">
. How to accomplish that it's content wraps to another row and not break a layout? Thank you for your help!

Answer Source

Try adding word-wrap and word-break

td {

Here's your updated Bootply

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download