5. Floating left and right


#1

Hey Guys
I need your help. Here is the task;
Float the div with a class of .left to the left and the div with a class of .right to the right.
But I can't float the div with a class of .right to the right. I didn't find a solutions in the other topics.

It always say's: Oops, try again. Did you remember to float .right to the right?
Where is my mistake?

#header{ border-radius: 5px;
         height: 20px;
         width: 20px;
         background-color: green;
         position: fixed;
         z-index: 1;
}

.left{ border-radius: 5px;
         height: 20px;
         width: 20px;
         background-color: green;
         float: left;
}
}

.right{ border-radius: 5px;         
         height: 20px;
         width: 20px;
         background-color: green;
         float: right;
         
}

#footer{ border-radius: 5px;
         height: 20px;
         width: 20px;
         background-color: green;
}

#2

your .left has two closing curly brackets (}) instead of one.


#3

oh my god, really? Thank you really much.

xDDD

I've searched for half an hour... -.-


#4

yes, really :stuck_out_tongue:

Sounds like you resolved the issue, good to hear :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.