1. Home
  2. Computer Science MCQs
  3. Cascading Style Sheets - CSS
  4. With box-sizing: content-box, an element has width 200px…

Added 2 Nov 2026

With box-sizing: content-box, an element has width 200px, padding 20px and a 5px border on each side. What is its total rendered width?

  1. 250px Correct answer
  2. 200px
  3. 240px
  4. 225px

Correct answer

A. 250px

14 views

MCQSEXAM

Explanation

In the content-box model, padding and border are added to the width: 200 + (2 × 20) + (2 × 5) = 250px. With box-sizing: border-box it would stay 200px.

Reference

Asked in: NTS, Web Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cascading Style Sheets - CSS MCQs

Practise all Cascading Style Sheets - CSS MCQs

Similar MCQs