CSS Box Model Interview Questions – CSS Box Model Online Quiz

Question 1:  What are the main components of the CSS Box Model?

Question 2:  Which property is used to add space inside the element, between the content and the border?

Question 3:  Which CSS property controls the space outside an element, separating it from other elements?

Question 4:  What does the border property define in the box model?

Question 5:  Which value of box-sizing includes padding and border in the element’s total width and height?

Question 6:  If an element has width: 100px, padding: 10px, and border: 5px solid, what is the total width with box-sizing: content-box?

Question 7:  Which CSS property allows you to set all four margins at once?

Question 8:  What happens when margin: auto; is applied to a block element?

Question 9:  How can you collapse margins between two elements?

Question 10:  Which of the following is NOT part of the CSS Box Model?

Leave a Reply