CSSでのfloatの基礎練習

CSSでのfloatのつかい方を学習したがイマイチわかっているのかわかっていないのか・・・

 

思ったように動いてくれないのでもどかしい気持ちでいっぱいのままコード書いてみました。

HTMLだけで書いたので少し省略はしてます。

 

 

      <div id="topbox">
            <div class="purple"></div>
            <div class="olive"></div>
        </div>
        <div id="wrapper">
            <div class="red"></div>
            <div class="bule"></div>
            <div class="black"></div>
            <div class="yellow"></div>
            <div class="green"></div>
            <div class="pink"></div>
        </div>
        <div id="bottom">
            <div class="navy"></div>
            <div class="lime"></div>
        </div>
<style>
    header{
      floatleft;
    }
    #wrapper{
        width600px;
        height600px;  
      }
    #bottom{
        margin-top-200px;

    }
    .purple{
        background-color:purple;
        width300px;
        height100px;
        floatleft;
    }
    .olive{
        background-colorolive;
        width300px;
        height100px;
        floatright;
    }
    
   .red{
        background-color#ff0000;
        width200px;
        height200px
        floatleft
    }
    .yellow{
        background-coloryellow;
        width:200px;
        height200px;
        floatleft
    }
    .bule{
        background-colorblue;
        width:200px;
        height200px;
        floatleft
    }
    .green{
        background-colorgreen;
        width:200px;
        height200px;
        floatleft
    }
    .black{
        background-colorblack;
        width:200px;
        height200px;
        floatleft
    }
    .pink{
        background-colorpink;
        width:200px;
        height200px;
        floatleft
    }
    .navy{
        background-colornavy;
        width300px;
        height100px;
        floatleft;
    }
    .lime{
        background-color:lime;
        width300px;
        height100px;
        floatright;
    }
</style>