This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Sun, Earth, and Code Forum

View Course » View Exercise

242 points
81fdd47d7f151a8c7d8323640c01edd4?s=140&d=retro
Submitted by
genXtech
about 3 years ago

Sun Earth and Code

i would am trying to make mars on sun earth and code and i need a red solid circle for the image but i can't seem to get one could anyone help me or just supple the link


-2 votes

permalink

Instead of an image, If you want, you can make your own red circle like this:
Put a div with id mars In your html body:

<div id="mars"></div>

Then style it in your CSS:

#mars {
    position: absolute;
    /*
    top: 0;
    left: 50%;
    */
    /* the next two lines specify the width and height of mars */
    height: 40px;
    width: 40px;
    margin-left: -20px;
    margin-top: -20px;
    /* the next two lines style the colour and make the shape a circle */
    background-color: red;
    border-radius: 50%;
}

684 points
E2a772a15f05ddf3da92a29c17057987?s=140&d=retro
Submitted by
charliosone
about 3 years ago