Box sizing
box-sizing property. It specifies if the height and width of an element includes borders and padding. | CSS Shortcut class | Applied style |
|---|---|
| |
| |
Examples
Border
box-border
The size of this element includes the content, border, and padding.
<p class="box-border">
The size of this element includes the content, border, and
padding.
</p> Content
box-content
The size of this element includes the content only.
<p class="box-content">
The size of this element includes the content only.
</p> xs:> 480pxsm:> 640pxmd:> 768pxlg:> 1024pxxl:> 1280px
<div class="xs:box-border ...">
...
</div>