bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Responsive fluid tables

Open beldar opened this issue 14 years ago • 17 comments

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!

beldar avatar Mar 06 '12 09:03 beldar

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.

mdo avatar Mar 07 '12 05:03 mdo

Can you point me to that option?

beldar avatar Mar 07 '12 08:03 beldar

Any luck beldar?

pruimmartin avatar Mar 10 '12 23:03 pruimmartin

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.

alfred-c avatar Mar 22 '12 17:03 alfred-c

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.?

keilmillerjr avatar Apr 05 '12 12:04 keilmillerjr

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!

urzur avatar Jul 16 '12 11:07 urzur

See if this helps http://elvery.net/demo/responsive-tables/

avspeed avatar Aug 09 '12 20:08 avspeed

+1 for http://elvery.net/demo/responsive-tables/

linjunpop avatar Oct 13 '12 00:10 linjunpop

+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?

marceloverdijk avatar Jan 15 '13 15:01 marceloverdijk

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.

boulox avatar Jan 15 '13 17:01 boulox

+1, it would be great for tables to be fluid.

ToddHoff avatar Mar 02 '13 16:03 ToddHoff

+1

boh1996 avatar Mar 02 '13 18:03 boh1996

+1 also

rpullen avatar Mar 13 '13 03:03 rpullen

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.

brianmhunt avatar Mar 28 '13 19:03 brianmhunt

Related: 546d40a143539ecc4205ea4a9f5640572a2d6833

cvrebert avatar Jun 21 '13 07:06 cvrebert

So is it not going to happen or is it done? It's not clear from the above comments.

Thanks,

T

tomafc330 avatar Jul 27 '13 04:07 tomafc330

@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).

cvrebert avatar Jul 27 '13 05:07 cvrebert