dev
Quizzes
Quizzes
Leaderboard
Submit a question
Add
CSS quiz
· 42 questions
Center a div
All questions
Pick one answer
Which CSS centers a child both horizontally and vertically inside a div?
1
–
3
answer
←
previous
Question
6
of 42
12%
A
display: flex; justify-content: center; align-items: center;
B
display: flex; text-align: center;
C
display: flex; justify-content: center; text-align: center;
←
Previous
Next question
→