HTML & CSS
/Advanced
CSS Debugging Questions
Definition
Scenario-based questions where you are presented with a broken layout and asked how you would diagnose and fix it.
Explain Like I'm New
The interviewer describes a bug: 'The horizontal scrollbar keeps appearing on mobile, but there are no elements wider than 100%. Why?'. You have to explain your thought process and Chrome DevTools workflow.
Real World Example
Debugging margin collapse, z-index stacking context traps, or missing `box-sizing: border-box` resets.
Common Use Cases
- •Senior Front-End Interviews
Interactive Example
Interview Questions
basic
- What is the easiest way to visually find an element that is causing a horizontal scrollbar??
intermediate
- What is Margin Collapse?