Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     relative

    B.

     fixed

    C.

     static

    D.

     absolute

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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.


Be The First To Comment