CSS CSS Layout Basics Page Layout with the Float Property The Float Challenge Solution

Nishay Madhani
Nishay Madhani
15,455 Points

How did i get it wrong?

what i did was float one to the left and the other one to the right and give them a width of 40 and 6 but what happened was that they were floating on each side but not in the same line can you please help me fix the error or tell me where i went wrong

your help will be appreciated. THANK YOU

() .primary { () float:right;() width:60%;() () margin-right:10px;() () padding-left:10px;v() () padding-right:12px() ; () color:green;() } .secondary { () float:left;() width:40%;() () margin-left:10px;() () padding-left:10px;() () padding-right:12px;() () }(```)

Mark Pryce
Mark Pryce
8,802 Points

Could you post your code or a screen shot? Would help a ton to find the issues :)

3 Answers

Please include a screenshot or include the code in the comment. That way other users can help you

Nishay Madhani
Nishay Madhani
15,455 Points

.primary { float:right; width:60%; margin-right:10px; padding-left:10px; padding-right:12px; color:green; } .secondary { float:left; width:40%; margin-left:10px; padding-left:10px; padding-right:12px;

Ok thanks. I will try to find the error!

Hmm... Maybe you are missing a closing curly brace }.