How to make sidebar with same height as the content div?

前端 未结 5 1046
暗喜
暗喜 2021-01-19 08:37

the code is the following:

(CSS)

#container {
    border:1px dashed #000;
    overflow:hidden;
}
#content, #sidebar {
    float:left;
    width:50%;
         


        
5条回答
  •  悲&欢浪女
    2021-01-19 09:35

    .table {
        display:table;
    }
    .row {
        display:table-row;
    }
    .one {
        width:200px;
        border:1px solid #333;
        display:table-cell
    }
    
    gfhgfhgfhgf
    gfhgfhgfhgf

提交回复
热议问题