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

Sun, Earth, and Code Forum

View Course » View Exercise

102 points
53da5b60282ae3928e00012e_88794144
Submitted by
Charles
about 3 years ago

Can't complete 5 & 6

When I attempt to submit my code it simply opens fullscreen and when I exit back to the editor I get the following error message:
"Oops, try again. Please follow the instructions on the Full Preview page to test your code."

Here is my code for lesson 6:
index.html:

<html>
    <head>
        <link rel="stylesheet" href="style.css" />
    </head>

    <body>
        <img id="sun" src="http://goo.gl/dEEssP">

        <div id='earth-orbit'>
            <img id="earth" src="http://goo.gl/o3YWu9">
        </div>
    </body>
</html>

style.css:

html, body {
    width: 100%;
    weight: 100%;
    background-color: black;
}


#sun {
    position: absolute;
    top: 50%;
    left: 50%;

    height: 200px;
    width: 200px;
    margin-top: -100px; 
    margin-left: -100px;

    border-color: orange;
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;

    box-shadow: 0 0 128px red;
}


#earth {
    position: absolute;
    top: 0;
    left: 50%;

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

#earth-orbit {
    -webkit-animation: spin-right 10s linear infinite;
       -moz-animation: spin-right 10s linear infinite;
        -ms-animation: spin-right 10s linear infinite;
         -o-animation: spin-right 10s linear infinite;
            animation: spin-right 10s linear infinite;

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

@-webkit-keyframes spin-right {
    100% {
    -webkit-transform: rotate(360deg);
       -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
         -o-transform: rotate(360deg);
            transform: rotate(360deg);
    }
}

@keyframes spin-right {
    100% {
    -webkit-transform: rotate(360deg);
       -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
         -o-transform: rotate(360deg);
            transform: rotate(360deg);
    }
}

0 votes

permalink

Hi, your code passed just fine for me. What browser are you using?

2818 points
5674c6dae39efec455000434_879409444
Submitted by
Zeke Y
about 3 years ago

1 Comment

0e68c819961ba239ca8fc778c95e4cbc?s=140&d=retro johntotis about 3 years ago

it worked and for me try internet explorer