relative and position: absolute?
Do you still need the explanation?
position: relative is set on a parent element and doesn't affect it directly. position: absolute makes an element absolutely positioned to the nearest parent with position: relative. If no parents have relative, it is positioned absolutely relative to body
Обсуждают сегодня