Answer the question
In order to leave comments, you need to log in
How to write the position property correctly?
There are 3 div blocks, I assigned them a certain height and width and there is an img, there is a picture in it, I want to place 3 div blocks inside the picture, I write it like this: img {position: relative} and div blocks position absolute, left: 0, top: 0, but they appear in the upper left corner, i.e. they are positioned relative to the body, I don't understand why?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question