XHTML/ CSS - Margin
Margin is the space around an element. There is default margins, but you can move elements around and in relation to each other using margin elements.
If the margin property has four values:
https://www.w3schools.com/cssref/pr_margin.asp
https://www.youtube.com/watch?v=veKHw125UJs&index=23&list=PLC1322B5A0180C946
Definition and Usage
Themargin
property sets the margins for an
element, and is a shorthand property for the following properties:If the margin property has four values:
- margin: 10px 5px 15px 20px;
- top margin is 10px
- right margin is 5px
- bottom margin is 15px
- left margin is 20px
- margin: 10px 5px 15px;
- top margin is 10px
- right and left margins are 5px
- bottom margin is 15px
- margin: 10px 5px;
- top and bottom margins are 10px
- right and left margins are 5px
- margin: 10px;
- all four margins are 10px
https://www.w3schools.com/cssref/pr_margin.asp
https://www.youtube.com/watch?v=veKHw125UJs&index=23&list=PLC1322B5A0180C946
Comments