I've made changes to the semiHero class by adding a display:block;
. However, it's not taking up the space as expected and isn't pushing the container with the hr below the entire div. I want the semi-hero to occupy the space so that it pushes the container down.
View the image of the situation here.
Below is the relevant code snippet:
.semiHero {
background-image: url("../assets/semiHero.png");
height: 50%;
width: 100%;
background-position: center;
background-repeat: scroll;
background-size: cover;
position: absolute;
display: block;
}
<div class="semiHero">
<div class="container" id="NavMain">
<nav class="navbar navbar-custom navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#">Logo</a>
<button class="navbar-toggler custom-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav"
aria-expanded="false" aria-label="Toggle navigation" id="hamburger">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
<ul class="navbar-nav navbar-custom">
<li class="nav-item active">
<a class="nav-link" href="#">Start
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About Me</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Work</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</nav>
<div class="hero-text">
<h1>May I Introduce Myself?</h1>
<hr>
<h2>Frontend Design | UI/UX Design</h2>
<br>
</div>
</div>
<button id="goAhead">Go Ahead</button>
</div>
<!-- MainSection -->
<div class="container">
<div class="row">
<div class="col" id="Name">
<h1>
Raphael Lechner.
</h1>
</div>
</div>
</div>