CSS - Box Sizing

Box Sizing

The box-sizing property in CSS is used to specify how the width and height of an element should be calculated. It values include:

  • border-box - include padding and border when calculating the total width and height of the element.
  • content-box - only width and height of the content should be used when calculating the total width and height of the element.
ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT