CSS float 浮動基本語法
float:浮動參數;
基本語法中的浮動參數有 left、right 以及 none,『float:left;』代表向左浮動,『float:right;』代表像右浮動,而『float:none;』則代表元素不要浮動,在 DIV 區域使用 float 技巧,通常還會搭配 DIV 的寬度,來達成每個 DIV 正確排列的效果。CSS float 浮動範例、讓兩個 DIV 區塊並排
<div style="width:200px;height:60px;float:left;background-color:#FFD4D4;"></div>
<div style="width:200px;height:60px;float:left;background-color:#FFD382;"></div>
以上範例呈現<div style="width:200px;height:60px;float:left;background-color:#FFD382;"></div>

延伸閱讀