Now although this image shows all the different types of spacing as equal, the majority of the time these will mostly be padding (inner) and margin (outer). Padding is the inner space between the element and its border; margin is the outer space between two different elements.
<link> on your navigation bar has 10 pixels of margin, then there would be 20 pixels in between each
<link> that would not be clickable by the user.
If you have
<link>s on your navigation bar with padding set to 20 pixels, however, then there will be 20 pixels on each side of the
<link> text where the user is able to click.
If that part is confusing, try thinking about it in terms of whether
background-color would apply.
|Spacing||within element||between elements|
background-colordoes not apply; it is empty space.
background-colordoes not apply.
I hope this covers the basics of margin and padding! Happy coding!