Vertical align in bootstrap table

后端 未结 7 2001
萌比男神i
萌比男神i 2020-12-23 02:54

I am trying to display a table with 4 columns, one of which is an image. Below is the snapshot:-\"enter

7条回答
  •  旧时难觅i
    2020-12-23 03:00

    Based on what you have provided your CSS selector is not specific enough to override the CSS rules defined by Bootstrap.

    Try this:

    .table > tbody > tr > td {
         vertical-align: middle;
    }
    

    In Boostrap 4, this can be achieved with the .align-middle Vertical Alignment utility class.

    Text
    

提交回复
热议问题