Which of the following is positioned relative to the nearest positioned ancestor?

Which of the following is positioned relative to the nearest positioned ancestor? Correct Answer absolute

An element with positioabsolute; is positioned relative to the nearest positioned ancestor, instead of position relative to the viewport like fixed. However, if an absolute positioned element has no positioned ancestors, it uses the document body and moves along with page scrolling.

Related Questions