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:
  • padding:10px 5px 15px 20px;
    • top padding is 10px
    • right padding is 5px
    • bottom padding is 15px
    • left padding is 20px
If the padding property has three values:
  • padding:10px 5px 15px;
    • top padding is 10px
    • right and left padding are 5px
    • bottom padding is 15px
If the padding property has two values:
  • padding:10px 5px;
    • top and bottom padding are 10px
    • right and left padding are 5px
If the padding property has one value:
  • padding:10px;
    • all four paddings are 10px
Note: Negative values are not allowed.

source: https://www.w3schools.com/cssref/pr_padding.asp

https://www.youtube.com/watch?v=tOkQKpb7CVY&index=21&list=PLC1322B5A0180C946

Comments

Popular posts from this blog

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs