What does * { box-sizing: border-box; } do? What are its advantages?



What does * { box-sizing: border-box; } do? What are its advantages?..

Answer / hrpynux@gmail.com

The box-sizing property allows us to include the padding and border in an element's total width and height. If you set box-sizing: border-box; on an element, padding and border are included in the width and height: Both divs are the same size now! Hooray!

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CSS Cascading Style Sheets Interview Questions

How is white-space property of css3 used?

0 Answers  


How do I remove the underline from a hyperlink?

0 Answers  


Different Box Sizing Property?

1 Answers  


With the help of examples explain grouping and nesting of css selectors.

0 Answers  


What is selector specificity?

0 Answers  






How CSS style overriding works?

1 Answers  


What is the function of css?

0 Answers  


Explain the concept of tweening.

1 Answers  


Is html5 a programming language?

0 Answers  


Which property is used to set the color of the outline?

0 Answers  


What is the use of the box model in css?

0 Answers  


What is the origin of CSS ?

0 Answers  


Categories