I am struggling to position small planetary images around the main logo in a way that creates a satellite-like effect. Despite my efforts with positioning and margins, I have not been successful in achieving the desired look. Additionally, when I insert these images, the logo shifts down slightly and causes the page to become scrollable, which is not what I want. Can someone provide guidance on how to resolve these issues? Thank you!
Here is the HTML code I am using:
<body>
<div id="particles-js"></div>
<!-- UP Satellite -->
<div id="up_sat">
<img class="sat sat1" src="images/sat/rocket.png"/>
<img class="sat sat2" src="images/sat/earth.png"/>
</div>
<!-- HEADER - LOGO -->
<div id="header"><img src="images/header.png" /></div>
<!-- DOWN Satellite -->
<div id="down_sat">
<img class="sat sat3" src="images/sat/jupiter.png"/>
<img class="sat sat4" src="images/sat/neptune.png"/>
</div>
<!-- Particle Script -->
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="js/main.js"></script>
</body>
This is the CSS style I am applying:
html, body {
margin: 0;
background-color: #0f1824;
height: 100%;
padding:0;
}
canvas {
display: block;
vertical-align: bottom;
}
/* ---- particles.js container ---- */
#particles-js {
position: absolute;
width: 100%;
height: 100%;
}
/* ================= MAIN BODY ============== */
#header {
position:relative;
height: 100%;
width:100%;
}
#header img {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
margin:auto;
}