Giving height to table and row in Bootstrap

前端 未结 5 1942
说谎
说谎 2020-12-30 23:30

I am using Bootstrap 3 , i am trying to give height to table and row, but nothing is working for me .

I tried setting line-height

5条回答
  •  猫巷女王i
    2020-12-30 23:51

    CSS:

    tr {
    width: 100%;
    display: inline-table;
    height:60px;                // <-- the rows height 
    }
    
    table{
     height:300px;              // <-- Select the height of the table
     display: -moz-groupbox;    // For firefox bad effect
    }
    tbody{
      overflow-y: scroll;      
      height: 200px;            //  <-- Select the height of the body
      width: 100%;
      position: absolute;
    }
    

    Bootply : http://www.bootply.com/AgI8LpDugl

提交回复
热议问题