FullStackFSCCafé
 
 
Sign in with GoogleSign in with Google. Opens in new tab
Kill Your Tech Interview
3877 Full-Stack, Algorithms & System Design Interview Questions
Answered To Get Your Next Six-Figure Job Offer
      
🤖 Having Machine Learning & DS Interview? Check  MLStack.Cafe - 1704 Data Science & ML Interview Questions & Answers!Having ML & DS Interview? Check 🤖 MLStack.Cafe - 1704 ML & DS Interview Questions and Answers

Top 50 CSS Interview Questions

Entry Junior Mid Senior Expert
Sign in with GoogleSign in with Google. Opens in new tab
Topic Progress:

Theoretical Questions

Q1:   

Explain the three main ways to apply CSS styles to a web page

  
Add to PDF   Entry 
Q2:   

What is CSS?

  
Add to PDF   Entry 
Q3:   

How to use variables in Sass?

  
Add to PDF   Entry 
Q4:   

Explain what is a @extend directive used for in Sass?

  
Add to PDF   Junior 
Q5:   

What is a CSS rule?

  
Add to PDF   Junior 
Q6:   

List out the key features for Sass

  
Add to PDF   Junior 
Q7:   

What Selector Nesting in Sass is used for?

  
Add to PDF   Junior 
Q8:   

Describe floats and how they work

  
Add to PDF   Junior 
Q9:   

What is the difference between classes and IDs in CSS?

  
Add to PDF   Junior 
Q10:   

Have you played around with the new CSS Flexbox or Grid specs?

  
Add to PDF   Junior 
Q11:   

What existing CSS frameworks have you used locally, or in production? How would you change/improve them?

  
Add to PDF   Junior 
Q12:   

List out the data types that Sass supports

  
Add to PDF   Junior 
Q13:   

Explain the CSS box model and the layout components that it consists of

  
Add to PDF   Junior 
Q14:   

What is Sass?

  
Add to PDF   Junior 
Q15:   

Explain CSS sprites, and how you would implement them on a page or site

  
Add to PDF   Junior 
Q16:   

What is DOM (Document Object Model) and how is it linked to CSS?

  
Add to PDF   Junior 
Q17:   

How would you approach fixing browser-specific styling issues?

  
 Add to PDF   Mid 
Q18:   

What’s the difference between resetting and normalizing CSS? Which would you choose, and why?

  
 Add to PDF   Mid 
Q19:   

Explain your understanding of the box model and how you would tell the browser in CSS to render your layout in different box models.

  
 Add to PDF   Mid 
Q20:   

What is CSS preprocessor and why to user one?

  
 Add to PDF   Mid 
Q21:   

Describe pseudo-elements and discuss what they are used for

  
 Add to PDF   Mid 
Q22:   

What is CSS selectors? Name some.

  
 Add to PDF   Mid 
Q23:   

What does Accessibility (a11y) mean?

  
 Add to PDF   Mid 
Q24:   

How is responsive design different from adaptive design?

  
 Add to PDF   Mid 
Q25:   

What are the advantages/disadvantages of using CSS preprocessors?

  
 Add to PDF   Mid 
Q26:   

Have you ever worked with retina graphics? If so, when and what techniques did you use?

  
 Add to PDF   Mid 
Q27:   

What's the difference between a relative, fixed, absolute and statically positioned element?

  
 Add to PDF   Mid 
Q28:   

How does CSS actually work (under the hood of browser)?

  
 Add to PDF   Mid 
Q29:   

What is a Grid System in CSS?

  
 Add to PDF   Mid 
Q30:   

Explain the usage of table-layout property

  
 Add to PDF   Mid 
Q31:   

What's the difference between SCSS and Sass?

  
 Add to PDF   Mid 
Q32:   

Explain the purpose of clearing floats in CSS

  
 Add to PDF   Senior 
Q33:   

Describe z-index and how a stacking context is formed

  
 Add to PDF   Senior 
Q34:   

Is there any reason you'd want to use translate() instead of absolute positioning, or vice-versa? And why?

  
 Add to PDF   Senior 
Q35:   

What are the different ways to visually hide content (and make it available only for screen readers)?

  
 Add to PDF   Senior 
Q36:   

Have you ever used a grid system, and if so, what do you prefer?

  
 Add to PDF   Senior 
Q37:   

How do you optimize your webpages for print?

  
 Add to PDF   Senior 
Q38:   

Explain the basic rules of CSS Specificity

  
 Add to PDF   Senior 
Q39:   

Can you explain the difference between coding a website to be responsive versus using a mobile-first strategy?

  
 Add to PDF   Senior 
Q40:   

What does * { box-sizing: border-box; } do? What are its advantages?

  
 Add to PDF   Senior 

Code Challenges

Q1:   

What is variable interpolation in Sass? Provide some examples.

  
 Add to PDF   Junior 
Q2:   

How to create a zebra striped table with CSS?

  
  Add to PDF   Mid 
Q3:   

What is a Mixin and how to use on?

  
  Add to PDF   Mid 
Q4:   

What is the @content directive used for?

  
  Add to PDF   Senior 
Q5:   

What will be the CSS output for the following Sass code?

  
  Add to PDF   Senior 
Q6:   

What the code fragment has the greater CSS specificity?

  
  Add to PDF   Senior 
Q7:   

What clearfix methods do you know? Provide some examples.

  
  Add to PDF   Expert 
Q8:   

What’s wrong with Sass nesting? Provide some example.

  
  Add to PDF   Expert 
Q9:   

How to style every element which has an adjacent item right before it?

  
  Add to PDF   Expert 
Q10:   

Write down a selector that will match any links end in .zip, .ZIP, .Zip etc...

  
  Add to PDF   Expert 
 

Rust has been Stack Overflow’s most loved language for four years in a row and emerged as a compelling language choice for both backend and system developers, offering a unique combination of memory safety, performance, concurrency without Data races...

Clean Architecture provides a clear and modular structure for building software systems, separating business rules from implementation details. It promotes maintainability by allowing for easier updates and changes to specific components without affe...

Azure Service Bus is a crucial component for Azure cloud developers as it provides reliable and scalable messaging capabilities. It enables decoupled communication between different components of a distributed system, promoting flexibility and resili...

Cosmos DB has gained popularity among developers and organizations across various industries, including finance, e-commerce, gaming, IoT, and more. Follow along and learn the 24 most common and advanced Azure Cosmos DB interview questions and answers...
More than any other NoSQL database, and dramatically more than any relational database, MongoDB's document-oriented data model makes it exceptionally easy to add or change fields, among other things. It unlocks Iteration on the project. Iteration f...
Unit Tests and Test Driven Development (TDD) help you really understand the design of the code you are working on. Instead of writing code to do something, you are starting by outlining all the conditions you are subjecting the code to and what outpu...
Domain-Driven Design is nothing magical but it is crucial to understand the importance of Ubiquitous Language, Domain Modeling, Context Mapping, extracting the Bounded Contexts correctly, designing efficient Aggregates and etc. before your next DDD p...
At its core, Microsoft Azure is a public cloud computing platform - with solutions including Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) that can be used for services such as analytics, virtual c...
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. Follow along to refresh your knowledge and explore the 52 most frequently asked and advanced Node JS Interview Questions and Answers every...
Dependency Injection is most useful when you're aiming for code reuse, versatility and robustness to changes in your problem domain. DI is also useful for decoupling your system. DI also allows easier unit testing without having to hit a database and...