Chat with us directly!
Enjoy 20% off all plans by
following us on social media
. Check out other
promotions
!
Dismiss
Interviews
Dashboard
Practice questions
Guides
Pricing
Sign in / up
Get full access
Practice by framework
60+ questions
JavaScript
HTML
CSS
React
Angular
Svelte
CSS Questions
60+ CSS interview questions, including quiz-style knowledge questions and CSS coding questions.
Try these popular CSS questions
Explain your understanding of the box model and how you would tell the browser in CSS to render your layout in different box models.
Topics
CSS
What does `* { box-sizing: border-box; }` do?
Topics
CSS
Coding
Quiz
Topic
JavaScript
CSS
HTML
Accessibility
Internationalization
Performance
Network
Security
Testing
Search quiz questions
Sort by
Number of questions
30 questions
Total time
3 hours total
Questions List
Explain your understanding of the box model and how you would tell the browser in CSS to render your layout in different box models.
Importance
High
Topics
CSS
Users completed
1661 completed
What does `* { box-sizing: border-box; }` do?
Importance
High
Topics
CSS
Users completed
1714 completed
What is CSS selector specificity and how does it work?
Importance
High
Topics
CSS
Users completed
1430 completed
What is the CSS `display` property and can you give a few examples of its use?
Importance
High
Topics
CSS
Users completed
1456 completed
What's the difference between a `relative`, `fixed`, `absolute` and `static`-ally positioned element?
Importance
High
Topics
CSS
Users completed
1258 completed
What's the difference between `inline` and `inline-block`?
Importance
High
Topics
CSS
Users completed
1207 completed
Explain how a browser determines what elements match a CSS selector.
Importance
High
Topics
CSS
Users completed
1075 completed
Have you played around with the new CSS Flexbox or Grid specs?
Importance
High
Topics
CSS
Users completed
1096 completed
Is there any reason you'd want to use `translate()` instead of `absolute` positioning, or vice-versa? And why?
Importance
High
Topics
CSS
PERFORMANCE
Users completed
942 completed
Describe Block Formatting Context (BFC) and how it works.
Importance
Mid
Topics
CSS
Users completed
460 completed
Describe `float`s and how they work.
Importance
Mid
Topics
CSS
Users completed
549 completed
Describe pseudo-elements and discuss what they are used for.
Importance
Mid
Topics
CSS
Users completed
603 completed
Describe `z-index` and how stacking context is formed.
Importance
Mid
Topics
CSS
Users completed
565 completed
Explain CSS sprites, and how you would implement them on a page or site.
Importance
Mid
Topics
CSS
PERFORMANCE
Users completed
512 completed
Have you ever used a grid system, and if so, what do you prefer?
Importance
Mid
Topics
CSS
Users completed
505 completed
How do you serve your pages for feature-constrained browsers?
Importance
Mid
Topics
CSS
Users completed
425 completed
How is responsive design different from adaptive design?
Importance
Mid
Topics
CSS
Users completed
458 completed
How would you approach fixing browser-specific styling issues?
Importance
Mid
Topics
CSS
Users completed
444 completed
What are the advantages/disadvantages of using CSS preprocessors?
Importance
Mid
Topics
CSS
Users completed
448 completed
What are the different ways to visually hide content (and make it available only for screen readers)?
Importance
Mid
Topics
CSS
ACCESSIBILITY
Users completed
430 completed
What's the difference between "resetting" and "normalizing" CSS?
Importance
Mid
Topics
CSS
Users completed
421 completed
Are you familiar with styling SVG?
Importance
Low
Topics
CSS
Users completed
346 completed
Can you explain the difference between coding a website to be responsive versus using a mobile-first strategy?
Importance
Low
Topics
CSS
Users completed
368 completed
Can you give an example of an `@media` property other than `screen`?
Importance
Low
Topics
CSS
Users completed
279 completed
Describe what you like and dislike about the CSS preprocessors you have used.
Importance
Low
Topics
CSS
Users completed
297 completed
Have you ever worked with retina graphics?
Importance
Low
Topics
CSS
Users completed
261 completed
Have you used or implemented media queries or mobile-specific layouts/CSS?
Importance
Low
Topics
CSS
Users completed
292 completed
What are some of the "gotchas" for writing efficient CSS?
Importance
Low
Topics
CSS
Users completed
378 completed
What are the various clearing techniques and which is appropriate for what context?
Importance
Low
Topics
CSS
Users completed
268 completed
What existing CSS frameworks have you used locally, or in production?
Importance
Low
Topics
CSS
Users completed
302 completed