XHTML/ CSS - Padding
Padding is the space around text. If you were to highlight THIS text with you cursor. You will see the padding. You can increase this or move things around based on this.
If the padding property has four values:
source: https://www.w3schools.com/cssref/pr_padding.asp
https://www.youtube.com/watch?v=tOkQKpb7CVY&index=21&list=PLC1322B5A0180C946
If the padding property has four values:
- padding:10px 5px 15px 20px;
- top padding is 10px
- right padding is 5px
- bottom padding is 15px
- left padding is 20px
- padding:10px 5px 15px;
- top padding is 10px
- right and left padding are 5px
- bottom padding is 15px
- padding:10px 5px;
- top and bottom padding are 10px
- right and left padding are 5px
- padding:10px;
- all four paddings are 10px
source: https://www.w3schools.com/cssref/pr_padding.asp
https://www.youtube.com/watch?v=tOkQKpb7CVY&index=21&list=PLC1322B5A0180C946
Comments