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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inline element in css?

305


What is overflow css?

293


What is the purpose of the z-index and how is it used?

281


What is a page margin?

288


What is a benefit of using a style sheet?

343






What does * mean in css?

291


What does css mean in text?

298


How do I center my header?

275


What are the new selectors in css3?

296


What is a style sheet in editing?

272


What is ol type a used for?

296


What is css2?

284


How can backward compatibility be designed in CSS?

321


What are the ways to assign a certain colour to an element in css?

274


How to store css definitions in external files?

254