I've come across a similar topic addressing my problem, but I am still unable to resolve it. I am attempting to add a background image to my portfolio, but for some reason, it is not working. Can anyone offer any suggestions or ideas?
Here is the code I'm using:
HTML:
<div class="main">
<div class="navbar container-fluid d-flex justify-content-center">
<i class="fab fa-react fa-3x firstIcon mr-4"> <span class="txtIcon"> Project</span></i>
<i class="fas fa-check-square fa-3x mx-4"> <span class="txtIcon2"> Skills</span></i>
<i class="fas fa-id-card fa-3x ml-4"> <span class="txtIcon3"> Contact</span></i>
</div>
</div>
CSS:
.main{
background-image: url(../img/dev-dots.png);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.navbar{
height: 10vh;
background-color: purple;
position: fixed;
}
PS: Please excuse any mistakes in my English, as it is not my native language.