zenfrontend
HomeQuestionsProblemsCompaniesBlogToolsExtensionJoin Telegram
← All Questions

CSS Interview Questions

Interview questions covering css fundamentals.

01

CSS Box Model

Understanding the CSS box model

css
02

How to center a div

How to center a div using CSS. We will cover 4 different approaches: flexbox, grid, margin-auto, and position-absolute.

css
03

margin vs padding

CSS margin vs padding and the box model explained: when to use each, margin collapse, box-sizing, and a cheat sheet for buttons, cards, and layouts.

css
04

Difference between px, rem, em units

Understanding the differences between px, rem, em units

css
05

Difference between reset.css and normalize.css

Understanding the differences between reset.css and normalize.css

css
06

z-index css

Understanding the z-index and stacking context

css
Zen Frontend

A comprehensive handbook for frontend interview preparation

QuestionsProblemsBlogAboutContactTerms & ConditionsGitHub

© 2026 Zen Frontend.