Need help centering all text under products in Debut Theme

Hello everyone, I’ve found several answers on how to center the Product title and the price under my products, but for some reason it doesn’t always center everything. Some items are perfectly centered, but some are off. You can see the store here: https://store.livingnotestravelnetwork.com

Here is the code that I Added to my theme.css:

dl.price.price–listing { text-align: center;
}
.h4.grid-view-item__title.product-card__title { text-align: center; width: 100%; display: inline-block;
}
dl.price {
align-items: center;
}
.template-product dl.price{align-items: center; }

Here is a screenshot showing the differences:

@livingnotes

Please add the following code at the bottom of your assets/theme.css file.

.price__regular{
margin-right: 0px !important;
}

Hope this works.

Thanks!

@livingnotes

Please add the following code also.

.price dd {
    margin: 0px !important;
}

hello @livingnotes

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.

.price dd {
    margin: 0px !important;
}

Hey there. Thank you so much for the suggestion. It did improve the issue, but now some items still are not fully centered (see shot below) and now the price on the product screen is also centered instead of being to the left as it should be.

@livingnotes

Please remove the old code and add this new code and check product page price alignment.

#shopify-section-collection .price__regular{
margin-right: 0px !important;
}
#shopify-section-collection .price dd {
    margin: 0px !important;
}

Let me know if this works.

Thanks!

Thanks for sending this over.

I removed the old code and implemented this, but it shifted all the product titles back to being left justified.

So basically what I need to have is that everywhere where products are being listed I need the product titles and prices to be fully centered, but on the product page itself the title and price needs to be left justified.

Should I use my old code as is, and then edit the default product page template with the code you suggested? Thanks in advance for the help!

@livingnotes

Please add the following code at the bottom of your assets/theme.css file.

.product-single__title {text-align: center;}
.product__policies {text-align: center;}
.shopify-installments {text-align: center;}
.product-form__controls-group {
    justify-content: center;
    text-align: center;
}

Thanks!

hello @livingnotes

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.

.product-single__title {text-align: center;}
.product__policies {text-align: center;}
.shopify-installments {text-align: center;}
.product-form__controls-group {
    justify-content: center;
    text-align: center;
}

Hi there, and thank you for the suggestion. However, it still isn’t resolving the issue.

It is looks like the product title and product price are being centered from different points instead of centering both directly under the product title.

Here is the full code that I have right now with your suggestion, along with some screenshots with notes.

dl.price.price–listing { text-align: center;
}
.h4.grid-view-item__title.product-card__title { text-align: center; width: 100%; display: inline-block;
}

dl.price {
align-items: center
}

.product-single__title {text-align: center;}
.product__policies {text-align: center;}
.shopify-installments {text-align: center;}
.product-form__controls-group {
justify-content: center;
text-align: center;
}

hello @livingnotes

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.

.template-product .grid.product-single .product__price .price{
	align-items: flex-start;
}
#shopify-section-product-recommendations .grid .grid__item  .price__regular{
	    text-align: center;
           margin: 0 auto;
}
#shopify-section-collection .price.price--listing .price__regular{
	    margin: 0 auto;
}
#shopify-section-collection .price.price--listing {
	        justify-content: center;
	        align-items: center;
}

Hi there. This almost did it. I had to edit it as follows:

.template-product .grid.product-single .product__price .price{
align-items: flex-start;
}
#shopify-section-product-recommendations .grid .grid__item .price__regular{
text-align: center;
margin: 0 auto;
}
#shopify-section-collection .price.price–listing .price__regular{
margin: 0 auto;
}
#shopify-section-collection .price.price–listing {
justify-content: center;
align-items: center;
}

.price-item .price-item–regular { text-align: left;}

dl.price.price–listing { text-align: center;
}
.h4.grid-view-item__title.product-card__title { text-align: center; width: 100%; display: inline-block;
}
dl.price {
align-items: center;
}

The only thing left to fix is to get the price on the main product page to be aligned to the left without it affecting the price alignment everywhere else.

hello @livingnotes

please Go to Online Store->Theme->Edit code then go to assets/theme.css ->paste below code at the bottom of the file.

.template-product  #shopify-section-product-template .grid  .grid__item  .product__price .price{
align-items: flex-start !important;
}

Thank you so much! That did it!