responsive table with multiple columns in bootstrap -


i trying find answer "nth" amount of columns in table of bootstrap. guys asked before still there has been no solution. so, question how manage responsiveness of columns. let's have 5 colunms own names. | streets' names | victoria | lombard | champs-elysées | chervonoarmeyskaya | (without abbreviation, reader has understand)

my solution were:

a) playing font-size, making smaller adapt 320px size. succeed 480px (at least readable size).

b) removing padding @ ".table thead > tr > th, .table tbody > tr > th," @media (max-width: 480px) more space.

c) , last 1 add condition (switching automatically screen size if "320px, 360px" onto "480px, 640px").

i don't know if it's idea?

will work correctly on small devices iphone, ipod, samsung ..., nokia ..., sony etc... cross-browser compatibility? if how realize it?

here code:

<table class="table table-responsive">     <table class="table table-striped table-bordered">         <thead>             <tr class="alert alert-info">                 <th>the streets' names</th>                 <th>victoria</th>                 <th>lombard</th>                 <th>champs-elysées</th>                 <th>chervonoarmeyskaya</th>             </tr>         </thead>         <tbody>             <tr>                 <td>location</td>                 <td>australia</td>                 <td>united states</td>                 <td>france</td>                 <td>ukraine</td>             </tr>         </tbody>     </table> </table> 

p.s. if find solution, consider 7-10 columns. thanks.

i don't know working standard tables in bootstrap have come across couple of plugins work making tables responsive.

footable

i haven't used footables looks awesome. collapses specified columns expandable section.

datatables (responsive version)

this have used , uses same functionality of footables datatables , api. link shows how integrate bootstrap.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -