CSS Padding
Padding in CSS is the term given to the inner space of an element around its content. CSS allows you to control all the padding of an element; top, bottom, left and right. The corresponding properties for each side are: padding-top padding-bottom padding-left padding-right A general example for the padding can be:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <style> div { background-color: wheat; padding-top: 60px; padding-right: 50px; padding-bottom: 60px; padding-left: 50px; border: 1px solid; } </style> <div> CSS Padding </div> |
The values … Read more