I keep getting "Did you add 'position: absolute' to your earth-orbit style"


Hi, I am just coding on this and I keep getting "Did you add 'position: absolute' to your earth-orbit style?" when I have already. Please help! This is my style.css:

html, body {
    /* The universe takes up all available space */
    width: 100%;
    height: 100%;
    /* The universe is black */
    background-color: black;

#sun {
    position: absolute;
    /* Positions the top-left corner of the image to be *
    /* in the middle of the box */
    top: 50%;
    left: 50%;
    /* Play with these numbers to see what it does */
    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 64px orange;

#earth {
    position: absolute;
    top: 25;
    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%;



Hi Minecraftmaster05,

Could you please post a link to the exercise you're on?
Thanks :slight_smile:




@methodsolver96508 On line 40, you've forgotten to close your #earth CSS rule with a closing curly brace (}) :slight_smile: