Is there a way to make the images and text resize based on the size of the div or screen? I don't want the text to overflow the images when resizing. I've tried using the object-fit attribute but it hasn't worked. Any suggestions?
<div class="row" id="bannerDiv">
<img class="img-fluid" src="img/10045731_open-space-office.jpg" alt="banner">
<div id="bannerText">
<h3>Live webinar</h3>
<h1>Veeam Virtual Labs: Begginer to Advanced</h1>
<input type="button" id="regButton" value="REGISTER NOW">
</div>
</div>