Which of the following property sets the vertical alignment?

[amp_mcq option1=”align” option2=”vertical” option3=”vertical-align” option4=”vertical-alignment” correct=”option3″]

The correct answer is: C. vertical-align

The vertical-align property is used to vertically align inline-level elements within a block-level element. It can be used to align elements to the top, middle, bottom, or baseline of their parent element.

The align property is used to align block-level elements within a container. It can be used to align elements to the left, right, center, or justify.

The vertical property is not a CSS property.

The vertical-alignment property is not a CSS property.

Exit mobile version