Giving height to table and row in Bootstrap

前端 未结 5 1939
说谎
说谎 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条回答
  •  生来不讨喜
    2020-12-30 23:52

    What worked for me was adding a div around the content. Originally i had this. Css applied to the td had no effect.

                       
                 @Html.DisplayFor(modelItem => item.Message)           
            
    

    Then I wrapped the content in a div and the css worked as expected

           
                
    @Html.DisplayFor(modelItem => item.Message)

提交回复
热议问题