The img tag within div.image-block
is used for background.
User will put images on .block3
by drag and drop
How to create an element that will contain all elements from .image-block
?
<style>
.image-block {
position: relative;
z-index: 1;
width: 1490px;
height: 400px;
}
.block3 {
position: absolute;
z-index: 2;
top: 100px;
left: 100px;
width: 200px;
height: 200px;
display: block;
}
</style>
<div class="image-block">
<img src="https://hsto.org/getpro/habr/post_images/dde/292/490/dde292490b55a8c0824ecc6cc038f999.png" alt="картинка" width="1490" height="400">
<div class="block block3"></div>
</div>