CSS Position Property Interview Questions – CSS Position Property Online Quiz

Question 1:  Which of the following is NOT a valid value for the position property in CSS?

Question 2:  What does position: relative; do to an element?

Question 3:  When an element is given position: absolute;, it is positioned relative to:

Question 4:  What happens when an element has position: fixed;?

Question 5:  Which property is used to position an absolutely positioned element?

Question 6:  What is the default position value for an HTML element?

Question 7:  What is the key difference between absolute and fixed positioning?

Question 8:  What does position: sticky; do?

Question 9:  If an element is given position: absolute; and no positioned ancestor is found, it will be positioned relative to:

Question 10:  What happens if z-index is applied to an element with position: static;?

Leave a Reply