I've been trying to figure out, how to veritical align the content in my bootstrap grid.
I have 3 col-md-4 columns and I wanna center another div + test inside of them.
This is how it looks right now:
https://i.stack.imgur.com/EP8ur.png
How it actually should look: https://i.stack.imgur.com/8MAqv.png
Just everything centered.
I already searched for a few solutions, but none of them really worked out for me.
Thats my HTML:
            <div class="col-md-4 my-auto">
              <div><p>TEST</p></div>
              <p>This is an example</p>
            </div>
            <div class="col-md-4">
              <div><p>TEST2</p></div>
              <p>This is an example</p>
            </div>
            <div class="col-md-4">
              <div><p>TEST3</p></div>
              <p>This is an example</p>
            </div>
        </div>
Since I wasn't successful with the CSS Part, I don't think that there's an actual matter of showing it, but anyway:
I tried out this:
.align-middle {
  display: flex;
  justify-content: center;
  align-items: center;
}
As well as this:
.vertical-align {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
And a few other codes, but yeah.. unsuccessfully.
 
     
     
    