Archived topic
How to move Product Image to the right a little bit?
8 replies · Started by bluebit on November 20, 2018
How can I add .5 left padding to the main product image on the product page? I want the image moved slightly to the right. See link below.
Also on the bottom of the product page how to add .5 left padding to the title: Similar Images
And i need the css code to change the left and right padding for only the product pages, not the entire website
Hi there,
You could try this:
.woocommerce-product-gallery {
padding-left: 5px;
box-sizing: border-box;
}
.related.products h2 {
padding-left: 5px;
}
that worked but do you know how i can add padding to left and right side of only the woocommerce product pages?
Hi there,
try this CSS:
.single-product .grid-parent, .woocommerce-cart .grid-parent, .woocommerce-checkout .grid-parent {
padding-left: 40px;
padding-right: 40px;
}
sweet that code works, and what's the css code for changing the left and right padding on only the woocommerce cart and checkout page?
I edited the code above to include them in the one rule for consistency.
thanks
Glad we could help