Q: Which CSS property is used to set the margin for an element to be centered vertically?
-
A
margin-vertical-center
-
B
margin-top-bottom-auto
-
C
margin-middle
-
D
margin-vertical-auto
B
Answer:
B
Explanation:
To set the margin for an element to be centered vertically, you can use the margin-top and margin-bottom properties set to "auto".
Related Topic:
Share Above MCQ