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

Sun, Earth, and Code Forum

View Course » View Exercise

179 points
5189657e463cc3bb8d001b33_542725162
Submitted by
SlenderBro100
over 3 years ago

Need help on a unusual error

When i run my code, it asks my if I added position: absolute to #earth. I did as you can see in my code:

<body>
    <!-- Right below is an image of the sun -->
    <img id="sun" src="http://goo.gl/dEEssP">

    <!-- Insert the 'earth' on the next line -->
    <img id="earth" src="http://goo.gl/o3YWu9">

    #earth {
    position: absolute;
    top: 25%;
    left: 25%;
    }
</body>

Please answer in a full description giving an explanation and what is wrong. Thanks in advanced!


2 votes

permalink

#earth {
position: absolute;
top: 25%;
left: 25%;
} 

You need to add this part in style.css not in index.html. You can see this tabs on top of editor (or whatever it is)

517 points
Picture
Submitted by
Frank Anger
over 3 years ago

1 Comment

5189657e463cc3bb8d001b33_542725162 SlenderBro100 over 3 years ago

Ok. Thank you for the help! :)


0 votes

permalink

NO

236 points
54f8e33f95e378bae1000b21_541326655
Submitted by
MEESUMALI
over 2 years ago


-3 votes

permalink

my name is jeff

74 points
A976b6b319daea5b9950a5d441a5580c?s=140&d=retro
Submitted by
Ross BENFOLD
over 2 years ago