*, *::before, *::after { box-sizing: border-box; }A 100%-wide card does not grow beyond its container merely because padding is added.
LESSON 97 OF 100
Apply the border-box model to elements and pseudo-elements.
With box-sizing: border-box, the declared size includes padding and border. A shared rule for elements and pseudo-elements makes layout calculations more predictable.
*, *::before, *::after { box-sizing: border-box; }A 100%-wide card does not grow beyond its container merely because padding is added.
* { box-sizing: content-box; }content-box adds padding and border outside the declared size and does not meet the exercise objective.
For *, *::before and *::after, set box-sizing: border-box in one rule.
The selector list applies the declaration to all elements and both generated pseudo-element types.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.