HTML & CSS · Middle · Question 53 of 75
What does inset: 0 mean on an absolutely positioned overlay?
- ✓Correct answer:
top,right,bottomandleftare all 0, so it covers its containing block - 2It removes the element's margins
- 3It centers the element
Explanation
inset is the shorthand for the four offsets and follows the same 1–4 value order as margin. Combined with position: absolute and a position: relative parent it creates a full overlay.