This topic has 3 replies, 2 voices, and was last updated 3 years ago ago by Jennifer
Hello,
I am trying to center the content of the product single page with css.
I used this css but it only centers the text:
div.product-information-inner
{
display: flex;
justify-content: center;
text-align: center;
}
I am attaching a photo of how it looks.
Do you have any suggestion on how to center the entire thing?
Thanks,
Hello,
Add the below code instead of that one
div.product-information-inner, .product_meta>div, .product_meta>span, .product-share,
.product-content .woocommerce-variation-add-to-cart {
display:flex;
align-items: center;
justify-content: center;
text-align: center;
}
.product-info-wrapper form.cart table.variations td.label,
.product-information form.cart table.variations td.label,
.product-summary-center form.cart table.variations td.label, .product-information form.cart table.variations td.value {
text-align: center;
}
.single-product .product-information-inner a.reset_variations {
display: block;
}
Regards
Excelent!
Thank you very much!
Tagged: content, seo friendly, single-product page, themes, woocommerce, wordpress
The issue related to '‘Center single product page content’' has been successfully resolved, and the topic is now closed for further responses