# CSS Box Model & Layout

> Explain the CSS box model. What is the difference between content-box and border-box, and what is margin collapsing?

Canonical: https://www.internhack.in/learn/interview/html-css-interview/css-box-model
Last updated: 2026-11-28

Difficulty: Beginner

## Question

Explain the CSS box model. What is the difference between content-box and border-box, and what is margin collapsing?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Box model, box-sizing, content-box, border-box, Margin collapsing

Previous: [Semantic HTML & Accessibility](https://www.internhack.in/learn/interview/html-css-interview/html-semantic) · Next: [Responsive Design & Mobile First](https://www.internhack.in/learn/interview/html-css-interview/css-responsive) · [All of HTML & CSS Interview](https://www.internhack.in/learn/interview/html-css-interview)

## More HTML & CSS Interview questions

- [HTML Document Structure](https://www.internhack.in/learn/interview/html-css-interview/html-document-structure)
- [HTML Forms & Input Types](https://www.internhack.in/learn/interview/html-css-interview/html-forms)
- [HTML Tables & Lists](https://www.internhack.in/learn/interview/html-css-interview/html-tables-lists)
- [HTML5 APIs (Geolocation, Storage)](https://www.internhack.in/learn/interview/html-css-interview/html5-apis)
- [Meta Tags & SEO](https://www.internhack.in/learn/interview/html-css-interview/html-meta-seo)
- [CSS Selectors & Combinators](https://www.internhack.in/learn/interview/html-css-interview/css-selectors)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [HTML & CSS Interview](https://www.internhack.in/learn/interview/html-css-interview)
