MCQs > IT & Programming > CSS > To make childdiv vertically center of given code, what should the 'display' property of parentdiv and childdiv be? #parentdiv { width: 200px; height: 400px; vertical-align: middle; } #childdiv { width: 100px; height: 50px; } Vertical Center

CSS MCQs

To make childdiv vertically center of given code, what should the "display" property of parentdiv and childdiv be? #parentdiv { width: 200px; height: 400px; vertical-align: middle; } #childdiv { width: 100px; height: 50px; }
Vertical Center

Answer

Correct Answer: display:table-cell; for parentdiv and display:inline-block; for childdiv

Explanation:

Note: This Question is unanswered, help us to find answer for this one

CSS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

CSS Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it