-
AuthorPosts
-
December 20, 2019 at 11:33 pm #1168349
Hi,
I have a tabular data table which is scrollable inside of a tab section (2nd tab called “Investment Options & Fees”). On desktop it looks great but on mobile it does not render properly. Please help
December 21, 2019 at 1:39 pm #1168420Hey navindesigns,
I see that the table is not switching to the mobile view it’s cells are going to 100% width, did you add any custom css that might have change this?
Please include an admin login in the Private Content area so we can examine this closer.Best regards,
MikeDecember 21, 2019 at 5:10 pm #1168464sure
see login belowDecember 22, 2019 at 5:26 pm #1168578Hi,
Thank you for the login, since the table is set to scrolling it retains it’s width and is scrollable with a sideswipe, but in mobile, the tab section is also scrollable with a sideswipe, so the two elements nested are both being controlled by the same sidesipe.
So one solution is to add this css to show the complete table in mobile view and not rely on the sideswipe:@media only screen and (max-width: 767px) { #top.page-id-133 #tab_table .avia_scrollable_table .avia-table th,.avia_scrollable_table .avia-table td { padding: 9px 1px !important; } #top.page-id-133 #tab_table .avia_scrollable_table .avia-table li { margin-left: 0em !important; } #top.page-id-133 #tab_table .avia_scrollable_table .avia-table li { list-style: none !important; } #top.page-id-133 #tab_table .avia_scrollable_table .avia-table { width: 100% !important; } .responsive #top.page-id-133 #tab_table .avia_scrollable_table .avia-data-table > thead > tr > th, .responsive #top.page-id-133 #tab_table .avia_scrollable_table .avia-data-table > tbody > tr > th, .responsive #top.page-id-133 #tab_table .avia_scrollable_table .avia-data-table > tfoot > tr > th, .responsive #top.page-id-133 #tab_table .avia_scrollable_table .avia-data-table > thead > tr > td, .responsive #top.page-id-133 #tab_table .avia_scrollable_table .avia-data-table > tbody > tr > td, .responsive #top.page-id-133 #tab_table .avia_scrollable_table .avia-data-table > tfoot > tr > td { white-space: unset !important; } }
If you test this css please clear your browser cache.
Please see the screenshot in Private Content area of the expected result. This is for a larger mobile screen (425px) for a small mobile screen like the iPhone 6 the text may overflow the cells.
So probably the best solution is to choose “adjust table to screen size” in the “Responsive Styling” option, unless you show your table below the tab section.Best regards,
MikeJanuary 3, 2020 at 8:42 pm #1170119Thanks that works
I have one other question on the tab
I have customized the tab header a bit but on large monitors it is spanning way outside the site area
Please see screenshot
https://balrajdesign.com/ccscaribbean/wp-content/uploads/2020/01/screenshot.pngIs there a way it can stay within the site dimension
January 4, 2020 at 2:25 pm #1170281Hi,
I believejustify-content: space-evenly;
works better thanjustify-content: space-around;
in this case.
I changed your css to this to demonstrate, pleas check:.js_active .av-tab-section-tab-title-container { display: flex!important; justify-content: space-evenly; padding-top: 0px; padding-bottom: 0px; }
You can also try these options
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.