79691652

Date: 2025-07-06 10:05:45
Score: 2.5
Natty:
Report link

The sticky element depend on the height and the width of the parent if it has no parent so it depend on the body of the element or viewport so we have to give a speciifc height or widht not margin because the margin is space outside the box while height and widht is the space inside the box. and if we give a specific value to top,left,right,bottom so it stick there when we scroll where the value is set.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: malik yasa