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

Sun, Earth, and Code Forum

View Course » View Exercise

171 points
Picture
Submitted by
Kirsten
over 2 years ago

Oops, try again. Did you add 'position: absolute;' to your #earth-orbit style?

I went onto this forum, trying to see compare my code to the rest and mine looked the same but it still told me about my postition:absolute.
This is my code:
#earth {
position: absolute;
top: 0;
left: 50%;

height: 50px;
width: 50px;
margin-left: -25px;
margin-top: -25px;
}

#earth-orbit {
position: absolute;
top: 50%;
left: 50%;

width: 500px;
height: 500px;
margin-top: -250px;
margin-left: -250px;

border-width: 2px;
border-style: dotted;
border-color: white;
border-radius: 50%;
}

Please help


2 votes

permalink

I had this same problem, it seemed to be because I had an extra bracket (}) at the end of my 'Earth' section on the style sheets. Try looking to see if you have any extra brackets, deleting them and resubmitting. Hopefully it works then!

646 points
79a054495a0ab93ab13f74f9cbb4ad41?s=140&d=retro
Submitted by
Jonathan Kimble
over 2 years ago

2 Comments

06a3c62195dbed0e74cd774c4806f5c2?s=140&d=retro Dragoris over 2 years ago

This was my problem as well. Thank you!

51a677c0b49f0fc13d002202_955805718 stubotticus over 2 years ago

Same problem, found the rogue bracket and once I deleted that everything worked ty ^-^


0 votes

permalink

I'm having the same problem. Mine looks exactly like yours. I even tried copying and pasting it directly from the Instructions. It must be a glitch, so I'm just going to move on. It will annoy me that it won't be 100% finished, so I hope there's a workaround eventually. I'm on Firefox, it might just be the brower ? idk

389 points
55a83ab776b8febb2c0001a4_381249708
Submitted by
Caroline
over 2 years ago

3 Comments

E6c5d8ab8b56f397ed835d52dbaa27bb?s=140&d=retro Lauren Keeble over 2 years ago

Same thing happened to me and i'm using Chrome.

692a586be6a0fceec3fb1bc3f5875666?s=140&d=retro bugdebug_556f9ca6e39efeab08000263_de over 2 years ago

no difference using browser guys

692a586be6a0fceec3fb1bc3f5875666?s=140&d=retro bugdebug_556f9ca6e39efeab08000263_de over 2 years ago

just worked for me copy
the code for#earth as well