explain margins and padding in CSS with example
Answers
Answered by
3
The CSS properties, margin and padding, are both aspects of spacing of an element and it's content. Margin is the outside spacing of an HTML element from other elements. Also, both of these properties have a shorthand for defining the spacing of each side
OR
In CSS, a margin is the space around an element's border, while padding is the space between an element's border and the element's content. Put another way, the margin property controls the space outside an element, and the padding property controls the space inside an element.
Answered by
0
Answer:
Margin - The outside area particular tag
padding - same goes for inside
ex- Actually I am not good in writing example , I can explain anything face to face but for wasting your question and time
Similar questions
Math,
5 hours ago
Math,
5 hours ago
Math,
5 hours ago
Math,
7 months ago
Computer Science,
7 months ago