How to align two divs side by side using the float, clear, and overflow elements with a fixed position div/

前端 未结 4 1862
感情败类
感情败类 2020-12-01 07:52

So I\'ve been trying to align two divs side by side without overlapping. I have one div which will be fixed as a sidebar and the right div as the content. Hopefully, someone

4条回答
  •  暖寄归人
    2020-12-01 08:00

    Your code is correct. Kindly mark small correction.

    #rightcolumn {
         width: 750px;
         background-color: #777;
         display: block;
         **float: left;(wrong)**
         **float: right; (corrected)**
         border: 1px solid white;
    }
    

提交回复
热议问题