div set height equal

后端 未结 4 1268
不知归路
不知归路 2021-01-26 00:57

I have 3 divs. How can I make them equal if the other div height adjust. I want all my divs to adjust its height even do they have less co

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-26 01:16

    CSS:

    .column-wrapper { overflow: hidden; }
    
    .column-small {
       float: left;
       margin: 20px;
       background-color: red;
       padding-bottom: 1000px;
       margin-bottom: -1000px;
    }
    
    .column-small span { float: right; }
    
    .column-small ul {
       margin-top: -10px;
       width: 100%;
       max-width: 240px;
    }
    
    .column-small ul li { text-align: left; }
    
    .column-small li {
       list-style: none;
       padding: 5px;
       text-indent: -30px;
       word-wrap: break-word;
    }
    

    HTML:

    Features

    • Code blocking
    • Code Wrapping
    • Code Killing
    • Code Sleeping
    Read more

    Modules

    • Barking Around The house
    • Loving the Cats
    • Floating The points
    • Coding The Sleepers
    Read more

    Idont knows

    Read more

提交回复
热议问题