I’m having difficulty getting the background image to load on my webpage in the .home
class. The following code is used to set the background image, but it is not working.
.home {
display: flex;
align-items: center;
min-height: 100vh;
background-image: url(../wordpress/img/online-training.jpg);
background-size: cover;
background-position: center;
}
The following code is used to display the .home
class on the page.
<section class="home" id="home">
<div class="content">
<span>Take The Right Step <br>For Your Business</span>
<p>Tax associate is a leading consultancy firm that provides simple, effective company registration and accounting solutions to enterprises in ireland</p>
<a href="#" class="btn">Get Started</a>
</div>
</section>