Website Developer Question:
Download Job Interview Questions and Answers PDF
Tell me what Is CSS Box Model And What Are Its Components?
Answer:
It is common in HTML to term all of its elements as Boxes. Similarly, in CSS, Box Model refers to modeling the design and layout of its elements. It has primarily four core components.
☛ Margin – It refers to the top most layer of the box.
☛ Border – The padding and content options work around the Border. Changing the background color can also affect the Border.
☛ Padding – It defines spacing around the box.
☛ Content – It represents the actual content to be shown.
☛ Margin – It refers to the top most layer of the box.
☛ Border – The padding and content options work around the Border. Changing the background color can also affect the Border.
☛ Padding – It defines spacing around the box.
☛ Content – It represents the actual content to be shown.
Download Website Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what Are Child Selectors In CSS? | Tell us how Do You Add Comments In CSS? |