简体   繁体   中英

How to disable padding in paypal card payments fields

I have a problem with paypal card payments fields. As you can see padding is very big in them and i don't now why. I tried to zero the padding in all possible places but it didn't help. Any idea how i can do this?

照片

Code look like this:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

> TRY THIS!

body {
   margin: 0;
   padding: 0;
}

Do one thing. Open Developer Console (Ctrl+shift+I ) in your chrome browser.

Right click on each field and inspect. See whether that is padding or height and adjust accordingly.

Also, sometimes there is a CSS being applied from some other CSS file. Use !important to cross-check whether that is the case.

That's all I can say as of now as per your information provided in the question:)

UPDATE: Demo of Developer Console: 在此处输入图像描述

Always do this step, when something seems broken or not as per requirment.

Okay, the only way it works is to make an element height 20px, but that still doesn't fix the problem how to adjust this padding without constant value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM