How to get these two divs side-by-side?

前端 未结 8 934
無奈伤痛
無奈伤痛 2020-11-27 14:28

I have two divs that are not nested, one below the other. They are both within one parent div, and this parent div repeats itself. So essentially:

8条回答
  •  余生分开走
    2020-11-27 15:18

    Best that works for me:

     .left{
       width:140px;
       float:left;
       height:100%;
     }
    
     .right{
       margin-left:140px;
     }
    


    http://jsfiddle.net/jiantongc/7uVNN/

提交回复
热议问题