You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, box-sizing: border-box; is applied to all elements using the universal selector.
Suggestion:
Set box-sizing: inherit; in the universal selector and box-sizing: border-box; on the root element. This will have the same effect as before but it will ensure child elements inherit their parent's box-sizing, providing consistent behavior.
Example:
Imagine we have a .container with child elements inside it. If we set box-sizing: content-box; on the .container, currently in Bootstrap, only the container itself will have content-box, and the children will have border-box.
For consistency, it would be better if we set box-sizing: inherit; in the universal selector. This way, the child elements would inherit the same box-sizing as their parent. So, if the parent is set to content-box, the children will also use content-box,
Currently,
box-sizing: border-box;
is applied to all elements using the universal selector.Suggestion:
Set
box-sizing: inherit;
in the universal selector andbox-sizing: border-box;
on the root element. This will have the same effect as before but it will ensure child elements inherit their parent's box-sizing, providing consistent behavior.Example:
Imagine we have a .container with child elements inside it. If we set
box-sizing: content-box;
on the .container, currently in Bootstrap, only the container itself will have content-box, and the children will have border-box.For consistency, it would be better if we set
box-sizing: inherit;
in the universal selector. This way, the child elements would inherit the same box-sizing as their parent. So, if the parent is set to content-box, the children will also use content-box,Currently
Maybe Later
Check out the file
The text was updated successfully, but these errors were encountered: