I have added Size Chart as Pop-up to my product page which is connected to a page. Now when I view it in mobile, it doesn’t show the size chart properly. Can someone please help me in this? i have tried the already available guides but they are not working in my case. I want to show the complete table on mobile and desktop
The issue is happening because the pop-up container on mobile has a fixed width and doesn’t allow the size chart table to resize or scroll properly. That’s why you only see part of the table.
You can fix this with a bit of CSS to make the table responsive and scrollable on smaller screens. Add the following code to your base.css (or custom CSS in the theme editor):
/* Make size chart table responsive inside popup */
.size-chart table {
width: 100% !important; /* use full popup width */
border-collapse: collapse;
}
.size-chart table th,
.size-chart table td {
white-space: nowrap; /* keep text in one line */
padding: 8px;
}
/* Enable horizontal scrolling if table is wider than popup */
.size-chart {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
@media (max-width: 749px) {
.size-chart table {
font-size: 14px; /* adjust text size for mobile */
}
}
On desktop: the full table will show normally.
On mobile: users can either see the table resized or scroll sideways to view all columns, instead of the table being cut off.
This usually happens because the size chart table is wider than the mobile screen, so the popup doesn’t scale or scroll properly. You’ll want to make the table responsive with CSS so it shows completely on both desktop and mobile.
Try adding this to your theme’s Custom CSS (Online Store → Themes → Customize → Theme Settings → Custom CSS):