I am trying to put some images over another one (which is a big logo), and I also want it to be responsive : when I reduce the size of the browser window, I want the images that are over the logo to stay at the same place on the logo and follow its automatic resizing.
Here is what I have in the browser for now (I want to have the images on the lines and don't move from their position even when reducing the window) : browser actual result
And here is the code I have done until now :
#frame {
display: inline-flex;
justify-content: center;
width: 100%;
}
#logo-canvas {
width: 60%;
margin-left: auto;
margin-right: auto;
}
.parent-photo {
position: relative;
}
#child-photo1 {
width: 4rem;
height: 4rem;
border-radius: 50%;
position: absolute;
left: 1rem;
top: 1rem;
}
#child-photo2 {
width: 4rem;
height: 4rem;
border-radius: 50%;
position: absolute;
left: 2rem;
top: 2rem;
}
<section>
<div id="frame" class="parent-photo">
<img id="logo-canvas"src="assets/images/salmon-logo.png" alt="Wild Logo Shape">
<!--<div id="parent-photo"> -->
<img id="child-photo1" src="assets/images/Lorem-Ipsum-alternatives.png" alt="Photo 1">
<img id="child-photo2" src="assets/images/Lorem-Ipsum-alternatives.png" alt="Photo 2">
<!--</div> -->
</div>
</section>
I thought that the parent/child relation with the position attribute would work, but I am stuck (maybe the flex is messing with it ?). I am still a beginner so I could really use some help !
Thank you to anyone who will help me ! :)