# Box sizing and pseudo elements

**URL:** https://forum.codewithmosh.com/t/box-sizing-and-pseudo-elements/9676
**Category:** HTML/CSS
**Created:** [January 4, 2022, 6:31am UTC](https://forum.codewithmosh.com/t/box-sizing-and-pseudo-elements/9676 "2022-01-04T06:31:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![arturo1s](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@arturo1s](https://forum.codewithmosh.com/u/arturo1s)
#### Post date: [January 4, 2022, 6:31am UTC](https://forum.codewithmosh.com/t/box-sizing-and-pseudo-elements/9676/1 "2022-01-04T06:31:59Z")

</div>

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 class="post-metadata">

### Author: ![MTownsend](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/mtownsend/32/6311_2.png) [@MTownsend](https://forum.codewithmosh.com/u/MTownsend)
#### Post date: [January 31, 2022, 7:21am UTC](https://forum.codewithmosh.com/t/box-sizing-and-pseudo-elements/9676/2 "2022-01-31T07:21:59Z")

</div>

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

Then you can set a width and height property.
