No problem with the course, its great. but i have question regarding padding property.
i see padding is like a box or square. and inside it, are content.
but what im confused is, why when i decrease the padding number on body element, the content is bigger. but when i decrease it on menu element, it become bigger(?)
Think of margin, border and padding like it is in this picture. Increasing padding will reduce the amount of space for content, if your element has a fixed size.
What can be tricky though, is that your other elements like h1, h2 have a selected font-size, which css will try maintain. On the other hand, your menu item has a relative width, set with percentage, which css will also try to maintain. So it is possible for it to behave in a strange way, if one style is overriding the other.
I dont know if that was helpful or the most precise way to put it, but hope it helped
It is still a bit unclear to me where your doubt is. But just remember that each element has its own padding. So the body padding will be the space between the limits of the body and the content inside the body. While the padding of the menu element will be the space between the limits of the menu and the content inside it (h1, h2, p). And your menu width will try to fill 80% of the body. And finally if you are giving values that will not fit restrictions of other style attribute values, they will end up overriding each other, getting hard to understand.
Well, I am not an expert myself. I just keep creating one projet after another and talking to people and reading stuff… then i figure stuff out as I go hahaha. Good luck going on!