The box-sizing property tells the browser what the sizing properties should include. We can set this property to content-box (default) or border-box.
The box-sizing property is used to include the padding and border in an element’s total width and height.
Ex:-
div { box-sizing: border-box;}
content-box-
The width and height properties (and min/max properties) include only the content. Border, padding, or margin are not included.
border-box-
The width and height properties (and min/max properties) include content, padding, and border, but not the margin.
box-size property usually uses in cards, images & fonts.
Latest posts by rajeshkumar (see all)
- How to get Blackduck Trial version? - December 3, 2023
- PHP ionCube Error: cannot be decoded by this version of the ionCube Loader - December 2, 2023
- Cloudbees CD/RO Error: ectool - November 24, 2023