css
.overlay{position: absolute;
display: flex;
top: 0;
bottom: 0;
left: 0;
right: 0;
align-items: center;
justify-content: center;
flex-direction: column;
color: white;
text-align: center;
}
.overlay .videoButtonWrapper{
flex-direction: row;
margin-bottom: 10px;
}
.videoBackgroundWrapper{position: relative; width: 100%;}
.videoBackground{width: 100%;}
.tooltip:hover .tooltiptext {
visibility: visible;
}
Вот HTML-код, который я использовал, используя display flex. Посмотрите, это работает действительно хорошие парни. Спасибо за вашу помощь
<div class="videoBackgroundWrapper">
<video preload="auto" autoplay="true" loop="true" class="videoBackground">
<source src="Balloon.mp4" type="video/mp4">
</video>
<div class="overlay">
<h2>Professional Quality Videos Rendered Fast!</h2>
<p>Start with one of over 70 customizable templates amd create the perfect video to advertise your product or service.</p>
<div class="videoButtonWrapper">
<button class="btn btn-primary">See Templates</button>
<button class="btn btn-primary">Make Video</button>
</div>
</div>
</div>