Two divs side by side - Fluid display

后端 未结 8 979
你的背包
你的背包 2020-11-22 03:09

I am trying to place two divs side by side and using the following CSS for it.

#left {
  float: left;
  width: 65%;
          


        
8条回答
  •  隐瞒了意图╮
    2020-11-22 03:51

    This is easy with a flexbox:

    #wrapper {
      display: flex;
    }
    
    #left {
      flex: 0 0 65%;
    }
    
    #right {
      flex: 1;
    }
    Left side div

提交回复
热议问题