Adjust Table Width on Blog Post - HTML Mobile

Solved

Adjust Table Width on Blog Post - HTML Mobile

tomorrowgolf
Excursionist
19 0 5

Hi there,

I've created a blog post on Shopify and inserted a table. On Desktop it looks fine, but on Mobile it doesn't look nice because table width stays at 100% of screen size. Would like to see to scrolling option instead, to fit all the content of the table.

See here:
WhatsApp Image 2024-02-16 at 10.20.41.jpeg

Here is the link: https://tomorrowgolf.com/blogs/news/are-golf-balls-bad-for-the-environment

Thanks!

Accepted Solution (1)

Ritu-25
Shopify Partner
129 26 15

This is an accepted solution.

@tomorrowgolf , 

Please add this CSS in base.css

@media(max-width: 479px){
.rte table {
    overflow: hidden;
    overflow-x: scroll;
    display: block;
}
}

 

Thanks, 

Ritu 

If helpful then please Like and Accept Solution.
You can directly PM.
Email Me : [email protected]

View solution in original post

Reply 1 (1)

Ritu-25
Shopify Partner
129 26 15

This is an accepted solution.

@tomorrowgolf , 

Please add this CSS in base.css

@media(max-width: 479px){
.rte table {
    overflow: hidden;
    overflow-x: scroll;
    display: block;
}
}

 

Thanks, 

Ritu 

If helpful then please Like and Accept Solution.
You can directly PM.
Email Me : [email protected]