In my current setup, I have an h1 inside a container that I want to be centered horizontally. Using Bootstrap's .d-flex
and .justify-content-center
classes achieves this effect, but unfortunately it does not work in Internet Explorer.
<div class="coverflow-image-title-container d-flex justify-content-center">
<h1 class="coverflow-image-title">Title</h1>
</div>
.coverflow-image-title-container {
position: absolute;
width: inherit;
height: 100%;
z-index: 1;
transition: all 1s ease;
}
.coverflow-image-title {
line-height: 1;
color: white;
font-family: "NBI Regular";
position: absolute;
transition: font-size 1s ease;
white-space: nowrap;
pointer-events: auto;
}
I need to achieve the same centering behavior for Internet Explorer as well. How can I do this?