Questions
25 of 33
1What is a breakpoint in CSS? Why are breakpoints used in responsive web design?
2What is the syntax for setting a breakpoint using a media query?
3What is the syntax for setting a breakpoint using a media query?
4What units are typically used for defining breakpoints (e.g., px, em, rem)?
5What happens if no breakpoints are defined in a responsive layout?
6How do breakpoints help in mobile-first design?
7How does CSS decide which breakpoint to apply when multiple match?
8What’s the difference between min-width and max-width in media queries?
9How can you create a layout that adjusts between two breakpoints?
10What is the difference between device-based breakpoints and content-based breakpoints?
11What is the role of the viewport meta tag in responsive design?
12How do breakpoints help in mobile-first design?
13How does CSS decide which breakpoint to apply when multiple match?
14What’s the difference between min-width and max-width in media queries?
15What is the difference between device-based breakpoints and content-based breakpoints?
16What is the role of the viewport meta tag in responsive design?
17What is the difference between using em and px in defining breakpoints?
18How do you handle overlapping or conflicting breakpoint rules?
19Can breakpoints be combined with CSS Grid or Flexbox?
20How do CSS container queries differ from traditional breakpoints?
21How can you implement responsive typography using breakpoints?
22How can you use logical operators (and, not, only) in media queries?
23How does pixel density (device-pixel-ratio) affect breakpoints?
24What is the difference between min-device-width and min-width?
25How do you use breakpoints in frameworks like Bootstrap or Tailwind CSS?
26How would you write a media query for screens smaller than 768px?
27How would you create a responsive navigation bar using breakpoints?
28How would you handle images that need to resize at specific breakpoints? How can you make font sizes scale smoothly between two breakpoints?
29How would you debug a layout that looks broken at a specific breakpoint?
30How would you optimize breakpoints for tablets vs. phones?
31How can you prevent layout jumps between breakpoints?
32How do you use CSS custom properties (variables) with breakpoints?
33How do breakpoints differ between desktop, tablet, and mobile-first strategies?
25 / 33

How do you use breakpoints in frameworks like Bootstrap or Tailwind CSS?

Using CSS Breakpoints for Responsive Design

Breakpoints in CSS are defined using media queries to adjust layouts, typography, and elements based on the viewport width. They help ensure that a website looks and functions well across different screen sizes — from mobile to desktop.

Common Breakpoints for Responsive Design
  1. 1

    Small screens (mobile): 480px – 640px

  2. 2

    Medium screens (tablet): 768px

  3. 3

    Large screens (desktop): 1024px

  4. 4

    Extra large screens (wide desktop): 1280px or higher

  5. 5

    You can customize breakpoints based on your project needs — these values are only guidelines.

Example: Defining and Using CSS Breakpoints

In this example, styles scale up as the viewport width increases. Starting with a mobile-first approach, each breakpoint progressively enhances the layout for larger screens, maintaining readability and balance across devices.

Difficulty: 5/10
Topics: responsive design, utility classes, media queries

Scenario Questions

0-2 years experience
  1. 1

    How would you hide a navigation bar on screens smaller than the 'md' breakpoint using Tailwind CSS?

  2. 2

    You applied Bootstrap's 'col-md-6' class but the columns don't stack on a phone. What might be causing that?

  3. 3

    If you need a button to become full‑width only on extra‑small screens in Bootstrap, which classes would you use?

2-5 years experience
  1. 1

    While building a three‑column layout that should collapse to a single column on tablets, which Bootstrap breakpoint utilities would you choose and why?

  2. 2

    A component using Tailwind's 'lg:' utilities stopped responding after a recent CSS change. Walk me through how you'd debug the issue.

  3. 3

    Explain how you would implement a responsive image that switches source at the 'md' breakpoint in a React component using Tailwind.

5-8 years experience
  1. 1

    Our product mixes Bootstrap and Tailwind across micro‑frontends. How would you ensure breakpoint behavior stays consistent across both frameworks?

  2. 2

    If a page suffers layout thrashing because many elements have breakpoint‑specific classes, what performance‑optimisation techniques would you apply?

  3. 3

    Describe how you would create a shared design token file that defines breakpoint values for both Bootstrap and Tailwind in a large codebase.

8+ years experience
  1. 1

    We need to migrate a legacy codebase that uses custom media queries to Tailwind's breakpoint scale. What architectural considerations and migration plan would you propose?

  2. 2

    How would you design a unified breakpoint strategy that supports a mobile‑first React SPA and a server‑rendered Rails app using Bootstrap, while keeping future scalability in mind?

  3. 3

    When introducing a new breakpoint across multiple teams, how do you manage versioning, documentation, and backward compatibility to avoid breaking existing layouts?

Follow-up Questions

  • What tools do you use to verify breakpoint behavior in the browser?
  • How would you handle a situation where a breakpoint value needs to change across the whole product?
  • Can you give an example of a trade‑off you faced when choosing a breakpoint strategy?