Answer the question
In order to leave comments, you need to log in
How to make an element follow another element?
For example, there is a link:
And there is a picture in the form of an arrow:
You need to make sure that wherever the block moves, this picture follows it. How to do it?
<a class="mylink">Ссылка</a>
<img src="#" class="arrow">
Answer the question
In order to leave comments, you need to log in
position: fixed for help.)
Anchors the element to a specific point on the screen and does not change its position when the page is scrolled.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question