0
0
Tailwindmarkup~5 mins

Negative margin usage in Tailwind - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does a negative margin do in CSS or Tailwind?
A negative margin pulls an element closer to its neighbors or even overlaps them by moving it outside its normal space.
Click to reveal answer
beginner
How do you write a negative margin of 4 units on the top in Tailwind?
Use -mt-4. The - before mt means negative margin top.
Click to reveal answer
intermediate
Why might you use a negative margin in a layout?
To adjust spacing when normal margins create too much space, or to create overlapping effects for design.
Click to reveal answer
beginner
What is the Tailwind class for negative horizontal margin of 2 units?
Use -mx-2. It applies negative margin on both left and right sides.
Click to reveal answer
intermediate
Can negative margins cause accessibility or usability issues?
Yes, if used carelessly, they can overlap content making it hard to read or interact with, so use them carefully and test.
Click to reveal answer
Which Tailwind class applies a negative bottom margin of 6 units?
A-mb-6
Bmb-6
C-mt-6
Dpb-6
What happens visually when you apply a negative margin to an element?
AThe element moves down only
BThe element gets bigger
CThe element disappears
DThe element moves closer or overlaps neighbors
Which Tailwind class applies negative margin on both left and right sides?
A-mx-4
B-my-4
C-mt-4
D-ml-4
Why should you be careful when using negative margins?
AThey disable links
BThey slow down the website
CThey can cause overlapping that hurts readability
DThey remove images
How do you write a negative margin of 8 units on the left side in Tailwind?
Aml-8
B-ml-8
C-mr-8
Dpl-8
Explain what negative margins do and give an example of when you might use them in a web page layout.
Think about how elements can move closer or overlap.
You got /2 concepts.
    Describe how to write negative margin classes in Tailwind CSS and what the prefixes mean.
    Look at how Tailwind names margin classes.
    You got /3 concepts.