Question discussion

Which of the following property allows you to specify an element’s position with respect to the browser window?

292016Medium 1 reply 794 views
21
Which of the following property allows you to specify an element’s position with respect to the browser window?
  • Arelative
  • Bfixed
  • Cstatic
  • Dabsolute
Correct answer: B

Discussion 1

0
CCommunity
fixed

The fixed value allows you to specify an element’s position with respect to the browser window. Elements with fixed positioning are always visible and do not scroll with the rest of the document. Like absolutely positioned elements, fixed-position elements are independent of all others and are not part of the document flow.