Site logo

Archived topic

Responsive table mobile

9 replies · Started by Roy on May 27, 2018

Viewing posts 1–10 of 10

Hi,
There is an option to fix the table on this page?

On mobile, the page width is bigger than the display...
Can you please assist with a css that could fix it?

Thanks

Hi there,

the only simple solution we can provide is to make the table scrollable.
Add the Table inside a Group Block. With the Group Block selected go to Advanced > Additional CSS Class(es) and add: table-container

Then add this CSS to your site:

.table-container > div {
    padding: 0 !important;
    max-width: 100%;
    overflow-x: scroll;
}

If you need anything different you will need to use a plugin like Leo suggested.

Thanks David. I have already applied below one and have come to update the post. :) Below CSS works well for mobile-related table issues.

@media (max-width: 600px) {
table {
border-collapse: separate;
border-spacing: 0;
border-width: 1px 0 0 1px;
display: block;
overflow-x: auto;
white-space: nowrap;
width: 100% !important;
}
}

Glad to hear you found a solution!

I reduced the CSS a bit and make it like below:

Anyone who has this kinda problem can try below CSS.

@media (max-width: 600px) {
table {
display: block;
overflow-x: auto;
white-space: nowrap;
width: 100% !important;
}
}

Thanks again!

This code helped me. Thank you @Onur

Welcome @Umoette. Happy to help.

This archived topic is closed to new replies.