Fixed Row Height – Desktop vs Mobile
-
Hey Tobias,
I’m trying to do the following:
– set a fixed height for all rows in the body.
– force word wrap for all columns.
– desktop – vanilla TP
– mobile and tablet – collapse modeI’ve got TP +
– Change DataTables strings
– Fixed Columns
– Fixed Header
– ResponsiveMy desktop shortcode is:
[table id=4 datatables_fixedcolumns_left_columns=1/]My mobile/tablet shortcode is:
[table id=4 responsive = collapse responsive_breakpoint=”tablet”/] – OR –
[table id=4 datatables_fixedcolumns_left_columns=1 responsive = collapse responsive_breakpoint=”tablet”/]Custom CSS is listed below.
– Desktop works fine.
– But I can’t seem to get collapse to work w/ mobile or tablet.I recall that, in the past, you’ve mentioned sth about combining options for mobile, so I’ve tried both options above (ie. with and without fixed column).
3 questions (sorry for overloading):
1. Any idea why collapse is not working on mobile?
2. Where can I change the breakpoints for mobile and tablet?
3. When I do collapse, how can set the effective row height (or is it grandfathered from pre-collapse row height)?Thx!
CSS
/* TABLEPRESS - COMMON - TIMELINE */ /* DESKTOP */ @media only screen and (min-device-width : 992px) and (max-device-width : 9999px) { .tablepress-common-timeline .column-1 { min-width: 75px !important; max-width: 75px !important; } .tablepress-common-timeline .column-2 { min-width: 150px !important; max-width: 150px !important; } .tablepress-common-timeline .column-3 { min-width: 400px !important; max-width: 400px !important; } .tablepress-common-timeline tbody > tr { height: 200px!important; max-height: 200px!important; } } /* TABLET AND MOBILE */ @media only screen and (min-device-width : 1px) and (max-device-width : 991px) { .tablepress-common-timeline .column-1 { min-width: 75px !important; max-width: 75px !important; } .tablepress-common-timeline .column-2 { min-width: 200px !important; max-width: 200px !important; } .tablepress-common-timeline .column-3 { min-width: 400px !important; max-width: 400px !important; } .tablepress-common-timeline tbody > tr { height: 200px!important; max-height: 200px!important; } } /* COMMON - DESKTOP, TABLET AND MOBILE */ .tablepress-common-timeline tbody td { white-space: normal; word-break: normal; /* overflow: hidden; */ } .tablepress-common-timeline th { text-align: center; } .tablepress-common-timeline tbody > tr .column-2 { text-align: left; } .tablepress-common-timeline tbody > tr .column-3 { text-align: left; }
The page I need help with: [log in to see the link]
- The topic ‘Fixed Row Height – Desktop vs Mobile’ is closed to new replies.