This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by ObsidianMage
almost 9 years

What am i doing wrong?!

So I decided to try the Sun, Earth, and code activity, and about mid way in, I came across a problem that is happening through out my class and commonly too. I wrote

#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%;

} But it says my position isn’t absolute. Why is this happening?!

Answer 5547b2559113cb69170001a7

1 vote

Permalink

Review your code from top to bottom. { I’m not going to give you the answer but here is a hint} Make sure you have all the semicolon’s in place

points
Submitted by Jemma5
almost 9 years

Answer 5548f81586f552efb3000453

1 vote

Permalink

I already did that, as far as I can tell, it’s right. I feel like something’s wrong with code academy. For example, it claims I need to put the RBRACE on line 33 which is where #earth-orbit { is. It’s there, but code academy says otherwise.

points
Submitted by ObsidianMage
almost 9 years

Answer 5548f87986f5523898000093

1 vote

Permalink

To prove this farther, the instructions are to COPY the text it gives me which is the code in my original question. So either code academy gave me bad code or is bad code.

points
Submitted by ObsidianMage
almost 9 years