What actually prevents two imported images from occupying the same position.? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What actually prevents two imported images from occupying the same position.?

We don't always define the positions for the images, yet they are not superimposed on each other. What actually prevents that?

1st Aug 2019, 11:39 AM
Charnel
Charnel - avatar
2 Respostas
+ 5
The very positioning of elements when adding to this interferes. Elements line up from left to right, from top to bottom. To overlay one image on another, you must set the position: absolute property, coordinates and z-index to the element that should overlap.
1st Aug 2019, 11:56 AM
Anna/ŠŠ½Ń
Anna/ŠŠ½Ń - avatar
+ 2
Thanks for your response.
1st Aug 2019, 12:33 PM
Charnel
Charnel - avatar