Sale price not centered - by omthreetimes

3 replies2 participantsUpdated by Rose Tyler

  • Avatar: omthreetimes
    omthreetimes
    Participant

    Hi, I have used the following code to center the price on single product page.

    .single-product-page .product-info .price, .single-product-page .product-info .short-description {
        float:  none;
        text-align:  center;
        display:  block;

    But if I put the item on the sale it floats to the left. And goes to the same height of AddToCart Button. How to keep the sale price fixed to the same position? Screens attached.

    Thanks

    Please, contact administrator
    for this information.

    3 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Please add this custom css code:

    .single-product-page .product-info .price del, .single-product-page .product-info .price ins {
        float: none;
        text-align:  center;
        display: inline-block;
    }

    Regards

    Avatar: omthreetimes
    omthreetimes
    Participant

    Thank you so much, Rose! Have a good one!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    You’re welcome!

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register