SurveySparrow Interview Question

What is box-sizing: border-box CSS property?

Interview Answer

Anonymous

May 21, 2024

box-sizing: border-box is a CSS property that changes the default box model behavior. With border-box, the width and height of an element include its padding and border, meaning the actual content box will shrink to accommodate the padding and border within the specified width and height. This makes it easier to manage element sizes and ensures consistency across different elements.