Solved

How can I align product prices to the right and increase spacing?

Good_Mood
Excursionist
42 0 7

Hi There,

 

I am trying to do some changes to the price in the product page, first i would like to align price to the right, moreover i want to increase the space between the price and the variant picker above.

 

Thanks in advance

Good_Mood_0-1702139405614.png

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
5358 1294 1586

This is an accepted solution.

i check your base.css.

Made4uoRibe_0-1702141178883.png

Why this code is in the base.css?

Made4uoRibe_1-1702141222873.png

This code, must be in the theme.liquid before the </body> tag. or if you like to put on this file you must take out the <style></style> tag. Please, take out so the after code will work. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
5358 1294 1586

Hi @Good_Mood 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.price.price--large.price--show-badge {
    text-align: right !important;
    padding-top: 1rem !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1702140020929.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Good_Mood
Excursionist
42 0 7

Unfortunately it didn't work.

Made4uo-Ribe
Shopify Partner
5358 1294 1586

This is an accepted solution.

i check your base.css.

Made4uoRibe_0-1702141178883.png

Why this code is in the base.css?

Made4uoRibe_1-1702141222873.png

This code, must be in the theme.liquid before the </body> tag. or if you like to put on this file you must take out the <style></style> tag. Please, take out so the after code will work. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Good_Mood
Excursionist
42 0 7

It worked after i deleted the style tag.

 

Thanks