Which of the following property controls the horizontal overflow of a block or inline block?

overflow-x
overflow
overflow-y
overflow-k

The correct answer is: A. overflow-x

The overflow-x property controls the horizontal overflow of a block or inline block element. It can be used to specify whether the content of an element should be hidden or clipped when it overflows its container.

The overflow property controls the overflow of all four sides of an element. It can be used to specify whether the content of an element should be hidden or clipped when it overflows its container.

The overflow-y property controls the vertical overflow of a block or inline block element. It can be used to specify whether the content of an element should be hidden or clipped when it overflows its container.

The overflow-k property is not a valid CSS property.

Exit mobile version