Floating left and right

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

It gives me the message" Did you remember to float .left to the left?"

``` HTML -

CSS -
div {
border-radius:5px;
z-index:1;
width:50px;
height:50px;
position:fixed;
background-color:red;
}
.left {
float:left;
}

.right {
float:right;
}

<do not remove the three backticks above>

can you post your full html and css code?

you will need to use markup to make html code show:

https://discuss.codecademy.com/t/how-do-i-format-code-in-my-posts/51139

anyway, i found what i was looking for, float doesn’t work for elements with position fixed, all your divs are fixed due position: fixed; inside your div css selector

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