0
0
Tailwindmarkup~5 mins

Breakpoint prefixes (sm, md, lg, xl, 2xl) in Tailwind - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the sm: prefix in Tailwind CSS do?
The sm: prefix applies styles starting from the small screen size breakpoint (640px and up). It means the style will only work on screens that are at least 640 pixels wide.
Click to reveal answer
beginner
List the Tailwind CSS breakpoint prefixes in order from smallest to largest.
The order is: sm (≥640px), md (≥768px), lg (≥1024px), xl (≥1280px), and 2xl (≥1536px).
Click to reveal answer
beginner
How would you apply a background color only on medium screens and larger using Tailwind?
Use the md: prefix before the background color class. For example, md:bg-blue-500 applies the blue background only on screens 768px wide or larger.
Click to reveal answer
beginner
True or False: Tailwind breakpoint prefixes apply styles only below the specified screen width.
False. Tailwind breakpoint prefixes apply styles starting from the specified screen width and up (mobile-first). For example, lg: applies styles on large screens and larger, not smaller.
Click to reveal answer
beginner
Why is using breakpoint prefixes important in responsive design?
Breakpoint prefixes let you change styles based on screen size. This helps your website look good and work well on phones, tablets, and desktops by adjusting layout and appearance for each device.
Click to reveal answer
What screen width does the md: prefix target in Tailwind CSS?
A768px and above
B640px and above
C1024px and above
D1280px and above
Which prefix applies styles on the largest screens in Tailwind?
Alg:
B2xl:
Cxl:
Dsm:
If you want a style to apply only on small screens and larger, which prefix do you use?
Axl:
Bmd:
Clg:
Dsm:
What happens if you use a class without any breakpoint prefix?
AIt applies only on large screens
BIt applies only on small screens
CIt applies on all screen sizes
DIt applies only on medium screens
Which breakpoint prefix would you use to apply styles starting at 1024px wide?
Alg:
Bmd:
Csm:
Dxl:
Explain how Tailwind CSS breakpoint prefixes help create responsive designs.
Think about how websites change on phones vs desktops.
You got /4 concepts.
    List all Tailwind breakpoint prefixes and their minimum screen widths.
    Start from smallest to largest.
    You got /5 concepts.