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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -