-1
Good morning, I’m a beginner programmer, I was doing a solar system css animation with Divs, the problem is that not all elements fit in the same space when the zoom is normal so when I zoom in, they go out of place (except the sun is not animated). I tried using the flex display, but when I do this the animation to
I’m going to post the css code of mercury and the sun, because the others are very similar to it
#mercurio {
width: 10px;
height: 10px;
border-radius: 50%;
background-color:white;
position:absolute;
left: 660px;
top: 300px;
animation-name: mercurio;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
#sol{
background-color: yellow;
width: 100px;
height: 100px;
border-radius: 50%;
position:relative;
margin-left: auto;
margin-right: auto;
top:250px;
text-decoration-color: white;
now html
<!DOCTYPE html>
Solar System
<div id="sol"></div>
<div id="mercurio"></div>
<div id="venus"></div>
<div id="terra"></div>
<div id="marte"></div>
<div id="jupiter"></div>
<div id="saturno"></div>
<div id="urano"></div>
<div id="netuno"></div>
Guy puts the html so that at least to simulate his problem ;)
– hugocsl
perdao Ugo, I am new to the site as well as programmer do not know very well how to use, now it is giving to execute the code?
– José Carlos