- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
HTML & CSS CSS Grid Quiz
This CSS quiz checks how CSS Grid sizes and places things. You will compute track sizes from fr units and gaps, count lines for grid-column, compare auto-fill with auto-fit, and work with named areas.
Sample question
Question 1 of 10The grid is 600px wide. How wide are the two columns?
.grid {
display: grid;
width: 600px;
grid-template-columns: 1fr 2fr;
}
Show the answer
B. 200px and 400px fr shares the free space in proportion: 3 fractions in total, so 1fr = 200px and 2fr = 400px.
What this quiz covers
frunits, fixed tracks andgap- Placing items with line numbers,
spanand-1 repeat(),minmax(),auto-fillandauto-fit- Implicit rows and
grid-template-areas - Why
1frcan overflow andminmax(0, 1fr)fixes it
Questions people ask
Do I need an account?
No. Anyone can play. Sign in to keep your XP, streak, badges and history.
Can I retake it?
Yes. Your best score is kept, and the questions and answers are shuffled each time.