Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
CSS Interview Questions
→
CSS Interview Questions For Freshers in CSS Interview Questions
→
What does * { box-sizing: border-box; } do? What a...
1.
What does * { box-sizing: border-box; } do? What are its advantages?
Answer»
It makes every element in the
DOCUMENT
include the padding and
BORDER
in the element’s inner dimension for the
HEIGHT
and width computation.
In box-sizing: border-box, The height of an element is now calculated by the content's height +
VERTICAL
padding + vertical border width.
The width of an element is now calculated by the content's width + horizontal padding + horizontal border width.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
How will you fix browser-specific styling issues?
Why do we need to use clear property along with floats in CSS?
What do you understand by tweening in CSS?
What is the importance of CSS Sprites?
How is the nth-child() different from nth of type selectors?
What do you have to do to automatically number the heading values of sections and categories?
How is margin different from padding in CSS?
How will you align content inside the p tag at the exact center inside the div?
How does this property work overflow: hidden?
How does the absolute positioning work?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies