0
0
Tailwindmarkup~20 mins

Holy grail layout in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Holy Grail Layout Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
layout
intermediate
2:00remaining
Identify the correct Tailwind CSS grid setup for a Holy Grail layout
Which Tailwind CSS class setup creates a 3-column Holy Grail layout with a fixed width sidebar on the left and right, and a flexible center content area?
Aflex flex-row justify-between
Bgrid grid-cols-3
Cgrid grid-cols-[1fr_200px_1fr]
Dgrid grid-cols-[200px_1fr_200px]
Attempts:
2 left
💡 Hint
Think about how to fix the sidebars width and let the center grow.
selector
intermediate
1:30remaining
Which Tailwind utility applies a sticky header in Holy Grail layout?
In a Holy Grail layout, which Tailwind CSS class makes the header stick to the top of the viewport when scrolling?
Asticky top-0 z-10
Bfixed bottom-0
Cabsolute top-0
Drelative z-0
Attempts:
2 left
💡 Hint
Sticky means it stays visible at the top but scrolls away if parent scrolls out.
🧠 Conceptual
advanced
1:30remaining
Why is using CSS Grid preferred over Flexbox for Holy Grail layout?
Which reason best explains why CSS Grid is preferred over Flexbox for implementing the Holy Grail layout?
AFlexbox cannot create any multi-column layouts.
BGrid is supported only in modern browsers, so it is safer to use.
CGrid allows defining rows and columns simultaneously, enabling precise 2D layout control.
DFlexbox automatically fixes sidebar widths without extra classes.
Attempts:
2 left
💡 Hint
Think about controlling both horizontal and vertical placement.
rendering
advanced
2:00remaining
What is the visual result of this Tailwind Holy Grail layout code?
Given this HTML snippet with Tailwind classes, what will the user see in the browser?
Tailwind
<div class="grid grid-cols-[150px_1fr_150px] min-h-screen">
  <nav class="bg-blue-500">Left Sidebar</nav>
  <main class="bg-white">Main Content</main>
  <aside class="bg-green-500">Right Sidebar</aside>
</div>
AThree equal width columns with blue, white, and green backgrounds.
BA full height page with a blue left sidebar 150px wide, white main content filling center, and green right sidebar 150px wide.
CA vertical stack of blue, white, and green sections.
DOnly the main content is visible; sidebars are hidden.
Attempts:
2 left
💡 Hint
Look at the grid column sizes and background colors.
accessibility
expert
2:30remaining
Which ARIA roles and landmarks best improve accessibility in a Holy Grail layout?
To make a Holy Grail layout accessible, which combination of semantic HTML5 elements and ARIA roles is best practice?
A<header role="banner">, <nav role="navigation">, <main role="main">, <aside role="complementary">, <footer role="contentinfo">
B<div role="banner">, <div role="navigation">, <div role="main">, <div role="complementary">, <div role="contentinfo">
C<section role="banner">, <section role="navigation">, <section role="main">, <section role="complementary">, <section role="contentinfo">
D<article role="banner">, <article role="navigation">, <article role="main">, <article role="complementary">, <article role="contentinfo">
Attempts:
2 left
💡 Hint
Use semantic elements first, then add ARIA roles if needed.