Tagged: enfold, responsive, table
-
AuthorPosts
-
August 5, 2016 at 2:41 am #668776
Hi Enfold,
I am trying to make a table on my page responsive and scroll when it’s too big.
Here is the page in question (table at the bottom): http://52kards.com/product/mint2/
See setting screenshot: http://imgur.com/a/c1jAK
However, when I view the page on mobile the table isn’t formatted correctly and doesn’t scroll:
See mobile screenshot: http://imgur.com/a/0eUGh
August 5, 2016 at 7:59 pm #669111I am experiencing the same problem on my site. Originally (when I setup the table 6 months ago) it was working but now the contents of the table cells escape their boxes and overlap each other when viewed on a mobile device. I want the table to simply scroll sideways.
Here is the page with non-responsive table on my site: https://theologicalresonance.com/sponsorship/
Looking forward to the fix!
August 5, 2016 at 9:18 pm #669146Hey!
If you are having issues with tables, please try a plugin called ” TablePress “.
It might be what you need, to achive the results you aim for.Please do and let us know if you still have any issues.
Regards,
BasilisAugust 5, 2016 at 9:50 pm #669157So there is no way to easily fix the bug in enfold itself? The plugin looks good but I would prefer not to turn to an additional plugin if possible. In my case, the table does generate a scroll bar at the bottom on mobile devices but because each table cell does not restrain its content the table is illegible.
August 8, 2016 at 2:49 pm #669829Exactly the same thing with mine too. The scrollable option no longer works but did before!
August 8, 2016 at 6:37 pm #669991Hey!
Please can you share your web site, so we can take a look at the issue, if it is a simple CSS fix and we can suply it?
Thanks a lot
Regards,
BasilisAugust 8, 2016 at 7:47 pm #670028Here you are:
August 11, 2016 at 9:56 pm #671568Any luck finding a solution for the css?
August 12, 2016 at 2:23 am #671609Hi,
Edit the table options, make it scrollable then add this in the Quick CSS field:
@media only screen and (max-width: 767px) { .avia-table { min-width: 989px; } }
Best regards,
IsmaelAugust 12, 2016 at 4:30 am #671655Thanks! That almost took care of everything :)
The table now scrolls and all of the cells are containing their contents except the description column on the far left… that one is still escaping its cells and overlapping onto the first column to the right. I tried changing it to a center text column or a default column and it is still acting the same way. Any additional tweaks?
Overall, I’m so much happier but it would be nice to eliminate this last bug.
August 12, 2016 at 6:41 am #671707Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
tr th:first-child, tr td:first-child { word-break: break-all; } .avia-button.avia-size-large { min-width: 90px!important; }
Best regards,
Vinay- This reply was modified 8 years, 4 months ago by Vinay.
August 12, 2016 at 6:38 pm #671999That doesn’t seem to fix it… All of the columns except the first “description” column on the far left side of the table appears correctly but that first column still overlaps onto the next one. Do I have to change the type of column to “center text” or “default” style?
August 12, 2016 at 6:43 pm #672000Just checked my own questions by changing the “description column” to “default” but that didn’t help… since the font is no longer in bold it doesn’t overlap as much but it still runs into the next column when viewed on a mobile device.
FYI: I replaced Ismael’s css with Vinay’s new css solution in the Quick CSS box under General Styling. The table works this way (as in it scrolls and all columns appear correctly except for the far left one)
August 17, 2016 at 4:26 am #673461Hi,
Please add this css code:
@media only screen and (max-width: 767px) { .responsive .avia_scrollable_table .avia-data-table > thead > tr > th, .responsive .avia_scrollable_table .avia-data-table > tbody > tr > th, .responsive .avia_scrollable_table .avia-data-table > tfoot > tr > th, .responsive .avia_scrollable_table .avia-data-table > thead > tr > td, .responsive .avia_scrollable_table .avia-data-table > tbody > tr > td, .responsive .avia_scrollable_table .avia-data-table > tfoot > tr > td { white-space: normal; } .avia-table { min-width: 989px; } }
Best regards,
IsmaelAugust 17, 2016 at 6:21 pm #673830Sadly, that didn’t fix it. Right now I have this code below in the Quick CSS box under General Styling and the first (far left) column of my table still overlaps onto the second column whenever the screen goes to a mobile layout.
@media only screen and (max-width: 767px) {
.responsive .avia_scrollable_table .avia-data-table > thead > tr > th, .responsive .avia_scrollable_table .avia-data-table > tbody > tr > th, .responsive .avia_scrollable_table .avia-data-table > tfoot > tr > th, .responsive .avia_scrollable_table .avia-data-table > thead > tr > td, .responsive .avia_scrollable_table .avia-data-table > tbody > tr > td, .responsive .avia_scrollable_table .avia-data-table > tfoot > tr > td {
white-space: normal;
}.avia-table {
min-width: 989px;
}
}August 21, 2016 at 7:10 am #675230 -
AuthorPosts
- You must be logged in to reply to this topic.