CSS This section I will introduce you to the padding properties. Let's take a look at the list of attributes for padding:
First we have to understand what is the padding distance, and what is the difference between it and the margin? Padding refers to the distance between the text border and the text.
This is not a bit difficult to understand, because the padding property and margin like, have a defined attribute: padding, so we give an example, to see what exactly is called padding distance, please look at the following figure:
The place where the red box is circled is the part of the fill distance that we see above. In fact, the effect of the above illustration is simply to add the following code to the margin of the body definition in the
Padding:1em 2em 3em 4em
As you can see from the above, the part of the red box tag belongs to the margin property at work.
The next section will introduce you to the border properties.