CSS Questions & Answers – CSS Box Model

This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Box Model”.

1. Which of the following property adds padding to the top of an element?
a) height
b) padding-height
c) top
d) padding-top
View Answer

Answer: d
Explanation: Self-explainatory.

2. Which of the following display property value is described by treats the element as inline?
a) inline-block
b) list-item
c) block
d) inline
View Answer

Answer: d
Explanation: Self-explainatory.

3. Which of the following property defines the style for the bottom border of an element?
a) border-bottom-style
b) border-collapse
c) border-style-bottom
d) none of the mentioned
View Answer

Answer: a
Explanation: Self-explainatory.
advertisement
advertisement

4. Which of the following property defines the style for the left border of an element?
a) border-style
b) border-left-style
c) border-left-width
d) border-right
View Answer

Answer: b
Explanation: Self-explainatory.

5. Which of the following visibility property value is described by The element is not visible, but the layout of surrounding elements is not affected?
a) visible
b) hidden
c) collapse
d) none of the mentioned
View Answer

Answer: b
Explanation: None.

6. Which of the following display property value is described by used internally by browsers to create list items. Of no practical value to web designers?
a) inline-block
b) list-item
c) group
d) none
View Answer

Answer: b
Explanation: Self-explainatory.

7. Which of the following property controls the horizontal overflow of a block or inline block?
a) overflow-x
b) overflow
c) overflow-y
d) overflow-k
View Answer

Answer: a
Explanation: Self-explainatory.
advertisement

8. Which of the following Overflow property value is described by scrollbars should be provided if the content is too big, but actual implementation is left up to the browser?
a) visible
b) scroll
c) auto
d) hidden
View Answer

Answer: c
Explanation: Self-explainatory.

9. Which of the following property sets a consistent margin on all four sides of the affected element?
a) boder
b) margin
c) padding
d) none fof the mentioned
View Answer

Answer: b
Explanation: Self-explainatory.
advertisement

10. Which of the following box-sizing property value is described by width and height include content, padding, and borders?
a) border-box
b) content-box
c) content-box
d) none fof the mentioned
View Answer

Answer: a
Explanation: Self-explainatory.

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.