You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On narrow devices tables often get very cramped. GitHub seems to have a solution that enables the table to be scrolled horizontally. What’s the CSS? Can I use this for bw_table?
An
example
where
tabular
content
gets
horizontally
scrolled?
Ok
then
what
do
i
have to do to make the content scroll
horizontally on my iPad?
Answer: this should scroll in portrait. Does it also scroll in landscape?
The text was updated successfully, but these errors were encountered:
bobbingwide
changed the title
Bw_table - find the best way t support horizontal scrolling on narrow devices
Bw_table - find the best way to support horizontal scrolling on narrow devices
Feb 8, 2020
this uses some Javascript to set the width of the table so that it's wider than the div in which it's embedded.
Then a little bit of CSS is used to allow the table to be scrolled horizontally.
Without any JS we were able to do something similar and trick the table into being a certain width which on small devices was wider than the device. Then the columns didn't reduce to almost nothing and become unreadable.
Perhaps I could add a col width parameter to set the minimum width for each column and some @media query CSS that applies this logic for small devices.
I'd also want to be able to do this for tables created using the block editor!
I'd also want to be able to do this for tables created using the block editor!
My blog post covers that.
Perhaps I could add a col width parameter to set the minimum width for each column and some @media query CSS that applies this logic for small devices.
I think I can make it much simpler just by setting a min-width value on the table. No need for media queries.
On narrow devices tables often get very cramped. GitHub seems to have a solution that enables the table to be scrolled horizontally. What’s the CSS? Can I use this for bw_table?
The text was updated successfully, but these errors were encountered: