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?
✗ Incorrect
The class
-mb-6 means negative margin bottom of 6 units.What happens visually when you apply a negative margin to an element?
✗ Incorrect
Negative margin pulls the element closer to others or overlaps them.
Which Tailwind class applies negative margin on both left and right sides?
✗ Incorrect
-mx-4 applies negative margin horizontally (left and right).Why should you be careful when using negative margins?
✗ Incorrect
Negative margins can overlap content making it hard to read or use.
How do you write a negative margin of 8 units on the left side in Tailwind?
✗ Incorrect
-ml-8 means negative margin left of 8 units.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.