MCQ Hive stays free thanks to ads. Please disable your ad blocker for this site so content and features keep working.
Web Development
CSS
Beginner
Q
With the default box-sizing: content-box, what is the rendered width of a box with width: 200px; padding: 10px; border: 5px?
A215px
B230px
C220px
D200px
Correct Answer:
B. 230px
Explanation:
200 + 2×10 + 2×5 = 230. With box-sizing: border-box, it would be exactly 200px.
ALSO KNOW (related points):
• In mobile-first responsive CSS, which media queries are typically used? → min-width queries that add styles as the screen gets wider
• Which CSS property is NOT inherited by child elements by default? → border