All things Shopify and commerce
Hi, I am editing a store and I need help with resizing my mobile banner. On the computer it looks fine but when you view it in mobile version the words don't fit on the banner.
@ImaniManyfield1 set the image as background remove all css from the text box and add padding top/bottom text align center
remove the image block and css to the text block
.custom-block-banner.banner-large-img {
background-image: url(https://www.chetaraelements.com/cdn/shop/files/CHE_TARA_ELEMENTS_1370_x_600_px_691e443c-5d7e-4665-9a...);
padding: 323px 0px;
}
Hello @ImaniManyfield1 👋
Inside Shopify Admin, you can go to Edit theme code, open file theme-styles.css and add this code at the bottom
@media (max-width: 767px) {
#block-1760decd-15b6-4ee2-940b-5265dbb920a1-largeImg-1 .adaptive_height {
padding-top: 100% !important;
}
}
The result on mobile
Hope that helps!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025