React Bootstrap: Vertical alignment of row's columns?

后端 未结 3 430
借酒劲吻你
借酒劲吻你 2021-01-05 02:03

I am using react bootstrap, I am trying to align items vertically within a row but with no luck. My problem is I have a button in one of the columns, so for the other column

3条回答
  •  难免孤独
    2021-01-05 02:29

    If you are using table rows, you can wrap contents within a

    ..

    like:

    
      

    and then you can use flexbox to align them dynamically:

    tr .align-me {
      display: flex;
      align-items: center;
    }
    

提交回复
热议问题