Question discussion

In CSS, an element with the declaration position: fixed is positioned relative to

2306Medium DSSSB TGT Computer Science 0 replies 1 views
0

In CSS, an element with the declaration position: fixed is positioned relative to

  • Aits nearest positioned ancestor
  • Bits normal position in the document flow
  • Cthe browser viewport, and it stays in place when the page is scrolled
  • Dthe parent element's padding box
Correct answer: C

Explanation

A fixed element is taken out of the flow and placed relative to the viewport, so it does not move when the page scrolls.

Discussion 0

Nobody has replied yet. Start the discussion!