1.

Which of the following CSS Property controls how an element is positioned?(a) position(b) set(c) static(d) fixI have been asked this question in an online interview.My question is based upon Precise Positioning of Elements in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct answer is (a) position

For explanation I would say: Controls how an element is positioned. When set to absolute or fixed, the element is REMOVED completely from the normal flow of the document. When set to relative, the element is moved relative to its position in the normal flow, but a SPACE is left where it would normally have been. The default VALUE, STATIC, means the element REMAINS in the normal flow and is not positioned.



Discussion

No Comment Found

Related InterviewSolutions