So I was looking at the code for a nav bar someone shared on another site that I really liked. He had some things in his CSS that I didn’t fully understand.
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
So I have a couple questions. First wouldn’t * include everything everything? What would *::before and *::after include that wouldn’t be part of everything already?
Also similar question. Wouldn’t assigning html’s height to 100% also set body’s height to 100% since it’s a child of html?
Thanks in advance for any help