Responsive fluid tables
Hi,
I'm building an application with Twitter Bootstrap one of the reasons because I need it to be responsive and readable with hand-held devices.
The responsive layout works like a charm, but tables not so much, they have a fixed min width where they can't go any thiner, I get that, but it would be so cool if the tables would be responsive, meaning when they can't go any thinner they change their layout to show the information somehow to fit the screen.
I don't know how would you achieve this, maybe changing the scale (or zoom) on the table so it go smaller, since on a hand-held you can zoom in with a pinch.
Is there an easy solution to solve this?
Thanks!
There is an option that came up a few months ago for such a thing, but we won't be integrating anything too crazy in the tables front. Too messy and not enough time for us to invest into it.
Can you point me to that option?
Any luck beldar?
how about exposing the table styles so that we can use divs to construct a table-like layout? specifically: borders, alternating rows, header/footer, condensed padding, etc.
I'd like this feature as well. Maybe a "web 2.0" way of creating table like data using floats or something would be better.?
Has anyone been able to find a workaround for this? I also want to achieve the same effect to enable my tables to fit on mobile devices!
See if this helps http://elvery.net/demo/responsive-tables/
+1 for http://elvery.net/demo/responsive-tables/
+1 would like to see something like this in Bootstrap. Maybe only an option like "No More Tables" to layout tables vertically on a mobile device.
What do you think?
Checkout https://github.com/bradvin/footable/ it can work on side of bootstrap pretty well. CSS need some small tweak to fully use BS style but nothing to crazy.
+1, it would be great for tables to be fluid.
+1
+1 also
As a matter of interest (and apologies for the chatter), the one I have seen that seems to most agreeable to me personally is the example here: http://css-tricks.com/examples/ResponsiveTables/responsive.php
There is a good discussion linked from that page as well.
Related: 546d40a143539ecc4205ea4a9f5640572a2d6833
So is it not going to happen or is it done? It's not clear from the above comments.
Thanks,
T
@tommytcchan IIUC, you can do something similar using v3's grid system and push/pull classes, but you have to specify the desired layouts at the various viewport sizes yourself (Bootstrap can't read your mind), and there isn't any special support for actual <table> elements as opposed to the grid system (though the simple show/hide-based-on-viewport-size classes mostly work for table parts now).