9.1 justify-content
justify-content is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind justify-content.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply justify-content to a course website and explain the decision you made.
- Apply justify-content to a online store and explain the decision you made.
- Apply justify-content to a banking app and explain the decision you made.
- Apply justify-content to a school portal and explain the decision you made.
- Apply justify-content to a clinic booking system and explain the decision you made.
- Apply justify-content to a dashboard and explain the decision you made.
- Apply justify-content to a restaurant site and explain the decision you made.
- Apply justify-content to a mobile app and explain the decision you made.
- Apply justify-content to a creator site and explain the decision you made.
- Apply justify-content to a business landing page and explain the decision you made.
Hands-on example
<div class="flex justify-between items-center">...</div>Expected output
A working responsive example demonstrating justify-content, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for justify-content using a different product, screen, component, or content set. Explain what changed and why.
9.2 align-items
align-items is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind align-items.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply align-items to a course website and explain the decision you made.
- Apply align-items to a online store and explain the decision you made.
- Apply align-items to a banking app and explain the decision you made.
- Apply align-items to a school portal and explain the decision you made.
- Apply align-items to a clinic booking system and explain the decision you made.
- Apply align-items to a dashboard and explain the decision you made.
- Apply align-items to a restaurant site and explain the decision you made.
- Apply align-items to a mobile app and explain the decision you made.
- Apply align-items to a creator site and explain the decision you made.
- Apply align-items to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">align-items</span>
</div>Expected output
A working responsive example demonstrating align-items, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for align-items using a different product, screen, component, or content set. Explain what changed and why.
9.3 align-content
align-content is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind align-content.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply align-content to a course website and explain the decision you made.
- Apply align-content to a online store and explain the decision you made.
- Apply align-content to a banking app and explain the decision you made.
- Apply align-content to a school portal and explain the decision you made.
- Apply align-content to a clinic booking system and explain the decision you made.
- Apply align-content to a dashboard and explain the decision you made.
- Apply align-content to a restaurant site and explain the decision you made.
- Apply align-content to a mobile app and explain the decision you made.
- Apply align-content to a creator site and explain the decision you made.
- Apply align-content to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">align-content</span>
</div>Expected output
A working responsive example demonstrating align-content, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for align-content using a different product, screen, component, or content set. Explain what changed and why.
9.4 align-self
align-self is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind align-self.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply align-self to a course website and explain the decision you made.
- Apply align-self to a online store and explain the decision you made.
- Apply align-self to a banking app and explain the decision you made.
- Apply align-self to a school portal and explain the decision you made.
- Apply align-self to a clinic booking system and explain the decision you made.
- Apply align-self to a dashboard and explain the decision you made.
- Apply align-self to a restaurant site and explain the decision you made.
- Apply align-self to a mobile app and explain the decision you made.
- Apply align-self to a creator site and explain the decision you made.
- Apply align-self to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">align-self</span>
</div>Expected output
A working responsive example demonstrating align-self, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for align-self using a different product, screen, component, or content set. Explain what changed and why.
9.5 gap
gap is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
Step by step
- Identify the CSS behavior behind gap.
- Build a very small HTML example before placing it inside a large component.
- Apply the Tailwind utilities and inspect the result at multiple viewport widths.
- Add interaction, dark mode, RTL, or accessibility states when the component needs them.
- Refactor repeated markup into a reusable component only after the visual rule is understood.
10 practical examples
- Apply gap to a course website and explain the decision you made.
- Apply gap to a online store and explain the decision you made.
- Apply gap to a banking app and explain the decision you made.
- Apply gap to a school portal and explain the decision you made.
- Apply gap to a clinic booking system and explain the decision you made.
- Apply gap to a dashboard and explain the decision you made.
- Apply gap to a restaurant site and explain the decision you made.
- Apply gap to a mobile app and explain the decision you made.
- Apply gap to a creator site and explain the decision you made.
- Apply gap to a business landing page and explain the decision you made.
Hands-on example
<div class="flex flex-wrap items-center gap-4 rounded-xl border bg-white p-6 shadow-sm">
<span class="font-semibold text-slate-900">gap</span>
</div>Expected output
A working responsive example demonstrating gap, with no page-wide overflow and clear behavior across breakpoints.
Practice exercise
Create a fresh example for gap using a different product, screen, component, or content set. Explain what changed and why.
Chapter 9 review — 10 questions and answers
1. What is the main purpose of justify-content?
Answer: justify-content is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
2. What is a common mistake with justify-content?
Answer: Using justify-content as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
3. What is the main purpose of align-items?
Answer: align-items is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
4. What is a common mistake with align-items?
Answer: Using align-items as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
5. What is the main purpose of align-content?
Answer: align-content is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
6. What is a common mistake with align-content?
Answer: Using align-content as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
7. What is the main purpose of align-self?
Answer: align-self is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
8. What is a common mistake with align-self?
Answer: Using align-self as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.
9. What is the main purpose of gap?
Answer: gap is part of the Tailwind CSS 4.3 workflow. Learn what the underlying CSS property or layout rule does first, then use the utility class to apply that rule consistently in markup.
10. What is a common mistake with gap?
Answer: Using gap as memorized class names without understanding the CSS behavior, responsive context, accessibility, or component structure.