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

How to create border using images by css3?

366


What is css and its type?

355


What is the purpose of % measurement unit?

441


What are the advantages of inline css?

342


Can you write css3 code for creating boarder image?

355






What is ict in shs?

345


Can more than one declaration be added in CSS?

699


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

358


What is box sizing in css?

364


How to make scroll bars with the help of css?

333


Declare all elements with class of “blue-text” to have a text color of blue.

341


How to select all paragraph elements with a lang attribute?

444


How to create rounded corners?

378


What does it mean to cascade something?

359


How do you represent a class in css?

347