> 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.