Box sizing and pseudo elements

Mosh said that pseudo elements doesnt inherit the box-sizing, my question is, in what way not inheriting would affect the shape or size of our box? For example, when I do this my box is still the same the size, so is there any case where a pseudo element can change the shape of our box?

div::before {
content: “hii”;
}

div::before {
content: “hii”;
display: block;
}

Then you can set a width and height property.

1 Like