Product description table container mobile HELP

Topic summary

A user is experiencing table overflow issues on mobile devices in their product descriptions using the Trade theme. The table extends beyond the screen width, creating a poor mobile experience.

Proposed Solutions:

Multiple community members offered CSS-based fixes:

  • Add overflow scrolling: Insert body, html { overflow: auto; } to base.css or use overflow-x: auto; on table wrapper elements to create horizontal scrollbars

  • Modify table styling: Add custom CSS targeting .rte__table-wrapper or .rte table classes with padding and overflow properties

  • Remove width constraints: Delete the width attribute from the table HTML and add width: auto; to base.css (around line 3100)

  • Adjust padding: Change padding values in base.css from 1em to 0.2em on line 417

Current Status:

The issue remains unresolved. The original poster tried one solution (adding code to theme.liquid) but reported no change. Several alternative approaches involving base.css modifications and table attribute removal have been suggested but not yet confirmed as working.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hi All, Im not sure this is possible, My table in the product description is overflowing on mobile, see below screenshot.

Theme: Trade. This is effecting product page on mobile.

https://www.affluentarchives.co.uk/products/versace-blue-polo-mediu

Hello @DASCPA add this css in assets > base.css

body, html {
overflow: auto;
}

Hi @DASCPA

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


You will have scroll bar for table, and the page will not have extra spacing

To enhance the professionalism and uniqueness of your site, I recommend setting a favicon. This can be easily done in the theme settings. Adding a favicon will help make your store stand out to customers.

Hope this can help you solve the issue

Best regards,

Richard | PageFly

1 Like

Hi @DASCPA ,

May I suggest to update code these steps:

  1. Go to Store Online-> theme → edit code
  2. Assets/base.css
  3. Add code below to end of file
.product__description  .rte__table-wrapper {
    overflow: auto;
    padding: 10px 1px;
}

Hi Richard, I have followed this but unfortunate no change

Hi @DASCPA

If the figure below meets your expectations, you need to follow the steps below,

First, you need to remove the width attribute of table

Secondly, modify base.css to change the padding: 1em; of line 417 to padding: 0.2em;

1 Like

Hello, where can I remove the width attribute from? thank you

Hi @DASCPA

Please add this code to theme.liquid file, after in Online Store > Themes > Edit code

If you cannot find the width attribute of the table, you can try another way,
Modify line 3100 in the base.css file and add ‘width: auto;’ to the ‘. rte table’

I hope it can be helpful to you.