@MakiRyanSubmitted about 2 years ago
Don't know how to center the old-price LOL.
Don't know how to center the old-price LOL.
Hi for the alignment of the old price, I would suggest using flexbox:
You would need to create a parent element that will act as the flex container. I'm using a utility class u-flex.
A good reading would be: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
HTML:
<div class="c-price u-flex"> <div class="price-promo"> $149.99 </div> <div class="price-original"> $169.99 </div> </div>CSS .u-flex { display: flex; align-items: center; }