React Bootstrap: Vertical alignment of row's columns?

后端 未结 3 410
借酒劲吻你
借酒劲吻你 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:33

    Simple solutions.

    Two classes should be used in immediate parent div/element. d-flex and align-items-center

    import { Col, Container, Row } from 'react-bootstrap';
    
    
    
    
       
          
             

    {items.length}

    {items.name}

    N.B. - styled has been optionally used to see the effect. items of items.length is a destructuring array from useState() hook

提交回复
热议问题