0

how to vertically middle the left and right divs below when using bootstrap and it should also be responsive?

<div class="test row">
    <div class="wrapper">
        <div class="left col-md-3">
            <label> Label</label>
        </div>
        <div class="right col-md-9">
            <input type="text" value="input" />
        </div>
    </div>
</div>


    .test {
        border: solid 1px;

        .wrapper {
            border: solid 1px brown;
            display: inline-block;
            vertical-align: middle;

            .left {
                border: solid 1px blue;
            }

            .right {
                border: solid 1px red;
            }
        }
    }

I've seen this but it doesn't work with bootstrap row and columns: css vertically align floating divs

Community
  • 1
  • 1
Dynamic
  • 1,553
  • 2
  • 19
  • 25

1 Answers1

0
.test {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
McHat
  • 830
  • 5
  • 15