Which of the following property is used to give a 3-D sense of depth to an element?

overflow-style
opacity
overflow-x
perspective

The correct answer is D. perspective.

The perspective property is used to create a 3-D effect on an element by making it appear to be closer or further away from the viewer. It can be used to create a sense of depth and dimension on a web page.

The other options are not used to create a 3-D effect.

  • Overflow-style is used to specify how the content of an element overflows its boundaries.
  • Opacity is used to specify the transparency of an element.
  • Overflow-x is used to specify how the content of an element overflows its boundaries horizontally.