Make two parallel `
` colums the same height

前端 未结 6 669
情话喂你
情话喂你 2020-12-20 03:36

Suppose I have two columns, both represented by a

block. Both columns may grow larger than the other, so I want to force the smaller one to grow as
6条回答
  •  春和景丽
    2020-12-20 04:27

    if you want the same but using table:

    a
    b
    a

    you can style your table and its cells as you like with paddings, margins, etc:

    .TABLE-DEFAULT{    
        border          : 0px;
        border-collapse     : separate;
        border-spacing      : 0px;
        width           : 100%;
        background          : transparent;
    }
    
    .TABLE-DEFAULT td{
        padding: 4px;
    
    }
    
    .TABLE-DEFAULT td:FIRST-CHILD{
        padding: 0px;
    
    }
    .....etc
    

提交回复
热议问题