So, I have this image with CSS style:
.city1 {
position: absolute;
top: 34px;
left: 170px;
}
<a href="malmo/">
<img class="city1" src="images/city.png" alt="Malmö">
</a>
Run codeHide resultThe problem occurs when I use position: absolute;and resize my browser, it changes position.
Now you can say that since this is an absolute position and it follows the browser when resizing and the like, but how can I solve this so that it does not move?
Thank!
source
share