So this is the Learn Responsive Web Design by Building a Piano - Step 10 description:
Now that you have reset the
htmlbox model, you need to pass that on to the elements within as well. To do this, you can set thebox-sizingproperty toinherit, which will tell the targeted elements to use the same value as the parent element.
You will also need to target the pseudo-elements, which are special keywords that follow a selector. The two pseudo-elements you will be using are the::beforeand::afterpseudo-elements.
and this is the error showing if I only use the * selector:
You should have a
*, ::before, ::afterselector.
I am not really having a problem, more of a curiosity. I don’t understand why I should add the selectors ::before and ::after if I am already targeting all elements of the page with *. Doesn’t * include also ::before and ::after by default?
Thanks to anyone who can dedicate their time here.