All things Shopify and commerce
Hi everyone,
I have a piece of custom CSS in my store that makes product page images responsive, ensuring they display correctly on both mobile and desktop. Before implementing this code, the images within the description text appeared distorted and compressed on mobile devices.
Here’s the issue: this CSS was originally written when my product descriptions were displayed in tabs (generated by an app). However, I recently removed these tabs because they made the descriptions feel hidden and cramped. Now, after disabling the app, the code no longer works as intended.
Here’s the specific code I was using (also, see screenshot below):
@media screen and (max-width: 768px) {
.station-tabs-tabcontent img {
height: auto !important;
}
}
I tried adjusting the code myself, but I haven’t been able to make it work without the tabs. Could anyone help me modify this code to restore image responsiveness now that the tabs are gone?
Thanks so much for your help—I really appreciate it!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024