cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Margin to Magento_Paypal Button

SOLVED

Adding Margin to Magento_Paypal Button

Fairly new to Magento in general, but have learned a lot in the past few weeks. if you place a sticker in your cart and go to the checkout page or the mini checkout dropdown in the menu you'll notice the Paypal button is WAY too close to the other buttons. Spent hours just trying to add a top and bottom margin to the paypal button or add margins to the other two buttons to no avail. If anyone could point me in the right direction I would be grateful. Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Adding Margin to Magento_Paypal Button

Hello @travis_bunn,

 

Please add below CSS code in your theme CSS file 

.paypal.checkout.paypal-logo.paypal-express-in-context-mini-cart-container {
    margin: 10px 0 !important;
}

You can check result in the attached screenshot https://www.screencast.com/t/71ZMu1U2HlI

2018-09-19_12-39-13.jpg

 

--
If my answer is useful, please Accept as Solution & give Kudos

View solution in original post

5 REPLIES 5

Re: Adding Margin to Magento_Paypal Button

Hello @travis_bunn

 

Can you please provide me your website link?

 

Thank you.

Re: Adding Margin to Magento_Paypal Button

Re: Adding Margin to Magento_Paypal Button

Hello @travis_bunn,

 

Please add below CSS code in your theme CSS file 

.paypal.checkout.paypal-logo.paypal-express-in-context-mini-cart-container {
    margin: 10px 0 !important;
}

You can check result in the attached screenshot https://www.screencast.com/t/71ZMu1U2HlI

2018-09-19_12-39-13.jpg

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Adding Margin to Magento_Paypal Button

The issue is more that I cannot seem to find the correct Theme css file. I spend most of my time searching for the right file with Magento. Then when I do change a CSS file and deploy static files either nothing happens or the website messes up and I have to toy around with clearing cache and deploying again for it to revert back.

 

EDIT:

 

Ok your CSS was right, but on top of this I needed to understand App folder vs Pub folder a bit more, find the correct theme file, and properly deploy the changed files. Side note: combining CSS and JS may have been part of the issue as well. After disabling and deploying properly things seemed to work. Thanks!

Re: Adding Margin to Magento_Paypal Button

Ok your CSS was right, but on top of this I needed to understand App folder vs Pub folder a bit more, find the correct theme file, and properly deploy the changed files. Side note: combining CSS and JS may have been part of the issue as well. After disabling and deploying properly things seemed to work. Thanks!