Having delved into the documentation of Bootstrap 4 Flex, I am facing difficulties in making the "align-item-center" property function as desired. Despite trying various examples found online, I am unable to alter the vertical alignment of elements. This situation is quite frustrating for me. Below is a simple HTML example that I am attempting to work on.
.d-flex {
display: -ms-flexbox !important;
display: flex !important;
}
.justify-content-center {
-ms-flex-pack: center !important;
justify-content: center !important;
}
.align-items-center {
-ms-flex-align: center !important;
align-items: center !important;
}
<div class="d-flex justify-content-center align-items-center">
<p> This should be centered right ?</p>
</div>
My current setup includes Bootstrap 4.4.1, along with the latest versions of popper.js and jquery. To clarify further, I am currently only dealing with a simple text line, but anticipate adding elements with dynamic sizes in the future.