How can I ensure that the text I write on an image stays within the image boundaries on small screen devices for full responsiveness? I've tried setting the image as the background of my div element, but the text overflows. Here is the code I used:
#background {
background: url("../../imgs/88246.jpg") no-repeat;
background-size: 100%;
}
<div class="h-100 container-fluid">
<div id="background" class="row h-100 justify-content-center align-items-center">
<h1 class="display-4">AYMAN TARIG</h1>
</div>
</div>