Sunday, November 13, 2011

Part 04 How to apply Margin and Padding in CSS?



 Margin
The margin clears an area around an element (outside the border). The margin does not have a background color, and is completely transparent.
The top, right, bottom, and left margin can be changed independently using separate properties. A shorthand margin property can also be used, to change all margins at once.



Padding
The padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element.
The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property can also be used, to change all paddings at once.

Lesson - 13: Margin and Padding in CSS







powered by multimediagyan ©




No comments:

Post a Comment