Positioning interview questions

18 Positioning questions from the CSS bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice Positioning free

1. What is position relative?

Junior
  1. A.a value that offsets an element from its normal spot while still reserving its original space in flow
  2. B.a value that removes an element from flow and places it relative to the nearest positioned ancestor
  3. C.a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  4. D.a self-contained layer hierarchy in which z-index values are compared only among siblings

Answer + AI explanation with a free account

2. Which term means: "a value that offsets an element from its normal spot while still reserving its original space in flow"?

Junior
  1. A.position absolute
  2. B.position sticky
  3. C.position relative
  4. D.position fixed

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.position relative — a value that offsets an element from its normal spot while still reserving its original space in flow
  2. B.position relative — a self-contained layer hierarchy in which z-index values are compared only among siblings
  3. C.position relative — a value that removes an element from flow and places it relative to the nearest positioned ancestor
  4. D.position relative — a value that removes an element from flow and pins it relative to the viewport during scrolling

Answer + AI explanation with a free account

4. What is position absolute?

Mid
  1. A.a value that removes an element from flow and places it relative to the nearest positioned ancestor
  2. B.a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  3. C.a value that removes an element from flow and pins it relative to the viewport during scrolling
  4. D.a self-contained layer hierarchy in which z-index values are compared only among siblings

Answer + AI explanation with a free account

5. Which term means: "a value that removes an element from flow and places it relative to the nearest positioned ancestor"?

Mid
  1. A.position absolute
  2. B.position fixed
  3. C.position sticky
  4. D.z-index

Answer + AI explanation with a free account

6. Which statement is correct?

Mid
  1. A.position absolute — a value that removes an element from flow and places it relative to the nearest positioned ancestor
  2. B.position absolute — the property controlling stacking order of overlapping positioned elements
  3. C.position absolute — a value that offsets an element from its normal spot while still reserving its original space in flow
  4. D.position absolute — a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container

Answer + AI explanation with a free account

7. What is position fixed?

Mid
  1. A.a value that offsets an element from its normal spot while still reserving its original space in flow
  2. B.a value that removes an element from flow and pins it relative to the viewport during scrolling
  3. C.a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  4. D.a value that removes an element from flow and places it relative to the nearest positioned ancestor

Answer + AI explanation with a free account

8. Which term means: "a value that removes an element from flow and pins it relative to the viewport during scrolling"?

Mid
  1. A.position relative
  2. B.z-index
  3. C.position fixed
  4. D.stacking context

Answer + AI explanation with a free account

9. Which statement is correct?

Mid
  1. A.position fixed — a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  2. B.position fixed — the property controlling stacking order of overlapping positioned elements
  3. C.position fixed — a value that removes an element from flow and places it relative to the nearest positioned ancestor
  4. D.position fixed — a value that removes an element from flow and pins it relative to the viewport during scrolling

Answer + AI explanation with a free account

10. What is position sticky?

Mid
  1. A.a value that offsets an element from its normal spot while still reserving its original space in flow
  2. B.a value that removes an element from flow and pins it relative to the viewport during scrolling
  3. C.a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  4. D.a value that removes an element from flow and places it relative to the nearest positioned ancestor

Answer + AI explanation with a free account

11. Which term means: "a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container"?

Mid
  1. A.z-index
  2. B.position fixed
  3. C.stacking context
  4. D.position sticky

Answer + AI explanation with a free account

12. Which statement is correct?

Mid
  1. A.position sticky — a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  2. B.position sticky — a value that removes an element from flow and places it relative to the nearest positioned ancestor
  3. C.position sticky — a self-contained layer hierarchy in which z-index values are compared only among siblings
  4. D.position sticky — a value that removes an element from flow and pins it relative to the viewport during scrolling

Answer + AI explanation with a free account

13. What is z-index?

Junior
  1. A.a value that offsets an element from its normal spot while still reserving its original space in flow
  2. B.a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  3. C.the property controlling stacking order of overlapping positioned elements
  4. D.a self-contained layer hierarchy in which z-index values are compared only among siblings

Answer + AI explanation with a free account

14. Which term means: "the property controlling stacking order of overlapping positioned elements"?

Junior
  1. A.position fixed
  2. B.z-index
  3. C.position relative
  4. D.position sticky

Answer + AI explanation with a free account

15. Which statement is correct?

Junior
  1. A.z-index — a value that offsets an element from its normal spot while still reserving its original space in flow
  2. B.z-index — a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  3. C.z-index — the property controlling stacking order of overlapping positioned elements
  4. D.z-index — a value that removes an element from flow and pins it relative to the viewport during scrolling

Answer + AI explanation with a free account

16. What is stacking context?

Senior
  1. A.a self-contained layer hierarchy in which z-index values are compared only among siblings
  2. B.the property controlling stacking order of overlapping positioned elements
  3. C.a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  4. D.a value that removes an element from flow and places it relative to the nearest positioned ancestor

Answer + AI explanation with a free account

17. Which term means: "a self-contained layer hierarchy in which z-index values are compared only among siblings"?

Senior
  1. A.z-index
  2. B.position relative
  3. C.stacking context
  4. D.position absolute

Answer + AI explanation with a free account

18. Which statement is correct?

Senior
  1. A.stacking context — a self-contained layer hierarchy in which z-index values are compared only among siblings
  2. B.stacking context — the property controlling stacking order of overlapping positioned elements
  3. C.stacking context — a value that behaves as in-flow until a scroll threshold is crossed, then stays pinned within its container
  4. D.stacking context — a value that removes an element from flow and places it relative to the nearest positioned ancestor

Answer + AI explanation with a free account

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice Positioning free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers