Which of the following property sets the vertical alignment?

align
vertical
vertical-align
vertical-alignment

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