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
Post a Comment