I've encountered an issue with resizing the window causing the logos to overlap the portrait image. Is there a way to fix the logos relative to the portrait?
Below is the code:
/* Defaults for Main Part of Pages */
body,
div,
h1,
p {
margin: 0;
padding: 0;
}
.page {
margin: 0;
padding: 0;
width: auto;
height: 100vh;
}
.page--darkmode {
margin: 0;
padding: 0;
width: auto;
height: 100vh;
background-color: #282434;
}
/* Homepage section */
/* Circle and Picture for homepage */
.content-container {
height: 100%;
width: 100%;
display: flex;
position: relative;
align-items: center;
flex-direction: column;
flex-shrink: 0;
justify-content: space-evenly;
}
.circle {
top: 20%;
width: 250px;
height: 250px;
border-radius: 50%;
position: absolute;
box-shadow: 1px 1px 5px 2px rgb(155, 155, 155);
display: flex;
justify-content: center;
align-items: center;
}
.circle--darkmode {
top: 20%;
width: 16rem;
height: 16rem;
border-radius: 50%;
position: absolute;
background-color: #282434;
box-shadow: 1px 1px 5px 2px black;
display: flex;
justify-content: center;
align-items: center;
}
.circle-image {
max-width: 100%;
max-height: 100%;
border-radius: 50%;
object-fit: contain;
}
.logos {
width: 12rem;
position: absolute;
top: 55%;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo-link {
width: 48px;
height: 48px;
}
<div class="page--darkmode">
<div class="content-container">
<div class="circle--darkmode">
<img class="circle-image" src="source" alt="Portrait of User">
</div>
<div class="logos">
<a href="https://www.linkedin.com/in/william-wei-0196a7209/">
<img class="logo-link" src="link" alt="Link to Linkedin">
</a>
<a href="https://github.com/weiwi21">
<img class="logo-link" src="link" alt="Link to github">
</a>
<a href="https://github.com/weiwi21/weiwi21.github.io/tree/master">
<img class="logo-link" src="link" alt="Link to github">
</a>
</div>
</div>
</div>
The current method involves hard-coding a lot of relative positioning, making it unfriendly for window resizing. Any suggestions on the necessary changes to address this issue?