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
70+ questions
JavaScript
HTML
CSS
React
Angular
Vue
Svelte
CSS Questions
70+ 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
31 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
2469 completed
What does `* { box-sizing: border-box; }` do?
Importance
High
Topics
CSS
Users completed
2528 completed
What is CSS selector specificity and how does it work?
Importance
High
Topics
CSS
Users completed
2095 completed
What is the CSS `display` property and can you give a few examples of its use?
Importance
High
Topics
CSS
Users completed
2138 completed
What's the difference between a `relative`, `fixed`, `absolute`, `sticky` and `static`-ally positioned element?
Importance
High
Topics
CSS
Users completed
1840 completed
What's the difference between `inline` and `inline-block`?
Importance
High
Topics
CSS
Users completed
1796 completed
Explain how a browser determines what elements match a CSS selector.
Importance
High
Topics
CSS
Users completed
1471 completed
Have you played around with the new CSS Flexbox or Grid specs?
Importance
High
Topics
CSS
Users completed
1489 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
1328 completed
Describe Block Formatting Context (BFC) and how it works.
Importance
Mid
Topics
CSS
Users completed
600 completed
Describe `float`s and how they work.
Importance
Mid
Topics
CSS
Users completed
749 completed
Describe pseudo-elements and discuss what they are used for.
Importance
Mid
Topics
CSS
Users completed
815 completed
Describe `z-index` and how stacking context is formed.
Importance
Mid
Topics
CSS
Users completed
759 completed
Explain CSS sprites, and how you would implement them on a page or site.
Importance
Mid
Topics
CSS
PERFORMANCE
Users completed
679 completed
Have you ever used a grid system, and if so, what do you prefer?
Importance
Mid
Topics
CSS
Users completed
673 completed
How do you serve your pages for feature-constrained browsers?
Importance
Mid
Topics
CSS
Users completed
558 completed
How is responsive design different from adaptive design?
Importance
Mid
Topics
CSS
Users completed
625 completed
How would you approach fixing browser-specific styling issues?
Importance
Mid
Topics
CSS
Users completed
591 completed
What are the advantages/disadvantages of using CSS preprocessors?
Importance
Mid
Topics
CSS
Users completed
597 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
586 completed
What's the difference between "resetting" and "normalizing" CSS?
Importance
Mid
Topics
CSS
Users completed
571 completed
Are you familiar with styling SVG?
Importance
Low
Topics
CSS
Users completed
482 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
504 completed
Can you give an example of an `@media` property other than `screen`?
Importance
Low
Topics
CSS
Users completed
412 completed
Describe what you like and dislike about the CSS preprocessors you have used.
Importance
Low
Topics
CSS
Users completed
404 completed
Have you ever worked with retina graphics?
Importance
Low
Topics
CSS
Users completed
359 completed
Have you used or implemented media queries or mobile-specific layouts/CSS?
Importance
Low
Topics
CSS
Users completed
396 completed
What are some of the "gotchas" for writing efficient CSS?
Importance
Low
Topics
CSS
Users completed
521 completed
What are the various clearing techniques and which is appropriate for what context?
Importance
Low
Topics
CSS
Users completed
354 completed
What existing CSS frameworks have you used locally, or in production?
Importance
Low
Topics
CSS
Users completed
406 completed
How do you manipulate CSS styles using JavaScript?
Importance
Low
Topics
JAVASCRIPT
CSS
Users completed
31 completed