Question discussion

An element has width 200px, padding 10px, border 5px and margin 20px (box-sizing: content-box). What is the width of its rendered box, excl…

1178Medium DSSSB TGT Computer Science 0 replies 1 views
0

An element has width 200px, padding 10px, border 5px and margin 20px (box-sizing: content-box). What is the width of its rendered box, excluding the margin?

  • A200px
  • B215px
  • C270px
  • D230px
Correct answer: D

Explanation

Rendered width = content 200 + padding 2 × 10 + border 2 × 5 = 230px (the margin would add another 40px).

Discussion 0

Nobody has replied yet. Start the discussion!