Shopify themes, liquid, logos, and UX
Hello Community, There are almost 1000 to 1200 words of content in my product page, that why I want to add scrollable bar on my product page like above one.
Here is the example of site
Hello @eddiebroke
Please share your store URL and password.
So that I will check and let you know the exact solution here.
Hey @eddiebroke ,
To add a scrollable area to your product page, similar to the examples shown in the images, you can wrap the long content in a container with a fixed height and enable scrolling with CSS. Here’s a basic example of how to achieve that:
1. HTML Structure: Wrap your product description content in a container:
<div class="scrollable-description">
<!-- Your long product description content goes here -->
<h2>Product Description</h2>
<p>... (long description text) ...</p>
</div>
2. CSS Styling: Set a fixed height and make the content scrollable within this container.
.scrollable-description {
max-height: 300px; /* Adjust height as needed */
overflow-y: auto;
padding: 1em;
border: 1px solid #ddd;
border-radius: 5px;
}
/* Optional: Add styling to the scrollbar */
.scrollable-description::-webkit-scrollbar {
width: 8px;
}
.scrollable-description::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 4px;
}
.scrollable-description::-webkit-scrollbar-thumb:hover {
background-color: #555;
}
This approach will ensure that long content fits neatly into a defined area with scrolling, improving readability and maintaining a clean layout on your product page
If I was able to help you, please don't forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!
Best Regard,
Rajat Sharma
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