Loading

Quipoin Menu

Learn • Practice • Grow

css / CSS Position
interview

Q1. What are the position values in CSS?
Values: static (default), relative, absolute, fixed, sticky.

Q2. What does position: relative do?
relative positions element relative to its normal position. Use top, right, bottom, left to offset it.

Q3. What is position: absolute?
absolute positions element relative to nearest positioned ancestor (non-static). Removes element from normal flow.

Q4. What is the difference between fixed and sticky?
fixed stays relative to viewport always. sticky toggles between relative and fixed based on scroll position.

Q5. What is the default position value?
Default is static, meaning element follows normal document flow and is not affected by offset properties.