I'm experiencing an issue where the links in my navigation bar are unclickable unless I remove some of the CSS styling I added.
Here is the specific CSS snippet that needs to be removed for the links to work:
.main-nav {
float: right;
list-style: none;
margin-top: 30px;
}
The problem seems to be related to the float: right;
property, as disabling it makes the links clickable again.
{
margin: 0;
padding: 0;
}
header {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(zomb2.PNG);
height: 100vh;
background-size: cover;
background-position: center;
}
.main-nav {
float: right;
list-style: none;
margin-top: 30px;
}
<main-nav li {
display: inline-block;
}
.main-nav li a {
color: white;
text-decoration: none;
...
... (Additional CSS code removed for brevity)
</div>
</div>
Thank you in advance for any assistance! I believe it's something simple that I'm overlooking, but after searching around extensively, I couldn't find a solution specifically addressing this issue. Any help would be greatly appreciated!