Two divs side by side - Fluid display

后端 未结 8 1101
你的背包
你的背包 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:36

    Here's my answer for those that are Googling:

    CSS:

    .column {
        float: left;
        width: 50%;
    }
    
    /* Clear floats after the columns */
    .container:after {
        content: "";
        display: table;
        clear: both;
    }
    

    Here's the HTML:

提交回复
热议问题