For the parent div, I utilized the container class here:
<div class="container">
<main role="main" class="pb-3">
<div style="width:100%; height:300px;z-index:-1" class="col-lg-12 mt-n4 bg-white text-
center">
<div style="margin: 0;position: absolute;top: 50%;left: 50%;-ms-transform:
translate(-50%,
-50%);transform: translate(-50%, -50%);">
<img class="rounded-circle border border-info p-1" style="width:150px;height:150px;"
src="~/ProfileImages/@currentuser.ImageProfile">
<h4 class="text-center font-weight-bold text-info">@Model.ApplicationUser.ArName</h4>
</div>
</div>
</main>
</div>
Now, I am trying to adjust the width of the child div inside the parent to 100%, but I am facing difficulties with this code:
<div style="width:100%; height:300px;z-index:-1" class="col-lg-12 mt-n4 bg-white text-center">
<div style="margin: 0;position: absolute;top: 50%;left: 50%;-ms-transform: translate(-50%,
-50%);transform: translate(-50%, -50%);">
<img class="rounded-circle border border-info p-1" style="width:150px;height:150px;"
src="~/ProfileImages/@currentuser.ImageProfile">
<h4 class="text-center font-weight-bold text-info">@Model.ApplicationUser.ArName</h4>
</div>
</div>
Is there a way to remove the effects of the bootstrap "container" class on the child element?