Download the BYJU'S Exam Prep App for free GATE/ESE preparation videos & tests - Download the BYJU'S Exam Prep App for free GATE/ESE preparation videos & tests -

Difference between Margin and Padding

What is Margin and Padding?

Margin provides the space or distance between the border and outer components. Padding gives the space or distance between the edge and the content of a component.

Difference between Margin and Padding

S.No. Margin Padding
1 Margin is the space outside of the component’s edge or border. Padding is the space inside of the component’s edge or border.
2 It is possible to set the margin to auto. It is not possible to set padding to auto.
3 Margin can be of float number or negative. Padding cannot be negative.
4 Background colour and other styling components do not impact the margin. Background colour and another styling of a component will affect padding.

Keep learning and stay tuned to get the latest updates on GATE Exam along with GATE Eligibility Criteria, GATE 2023, GATE Admit Card, GATE Application Form, GATE Syllabus, GATE Cut off, GATE Previous Year Question Paper, and more.

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*