ruby on rails 3 - table width an bootstrap -


i'm having trouble table width in bootstrap, particularly when making responsive.

i have table, example

<table class="table table-striped table-hover">             <% @list.each |title| %>                 <tr>                     <td><%= link_to title, :action => :topic, :title => title %></td>                 </tr>             <% end %>     </table> 

when reduce screen size, doesn't smaller else , stay within page, keeps going on edge of screen. have tried putting in container doesn't seem help...

your mark wrong. need <tbody>

<table class="table table-striped table-hover">  <tbody>    <% @list.each |title| %>      <tr>        <td><%= link_to title, :action => :topic, :title => title %></td>      </tr>    <% end %>  </tbody> </table> 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -