I'm a little unsure about how to articulate my question, so I'm just going to share the code:
body {
background-color: #232026;
background-image: url('galaxy16cropped.jpg');
background-position: center top;
background-repeat: repeat-y;
background-size: 2000px;
background-attachment: fixed;
font-family: 'Lato', 'Arial', sans-serif;
color: #FFFFFF;
padding: 0px;
margin: 0px;
line-height: 1.5;
}
a:hover:not(.nav) {
background-color: yellow;
}
div.nav {
background-color: #232026;
width: 100%;
margin: 0px;
padding: 6px 0px 6px 0px;
height: 40px;
}
.nav li {
color: #FFFFFF;
display: inline;
list-style-type: none;
text-align: center;
text-transform: uppercase;
margin: 0px;
}
li.current {
background-color: #424242;
}
.nav li.current:hover {
background-color: #424242;
}
.nav a:hover {
background-color: #737373;
}
.nav a {
color: #FFFFFF;
text-decoration: none;
display: inline-block;
border: none;
width: 140px;
}
.nav p {
color: #FFFFFF;
margin: 0px;
text-decoration: none;
display: inline-block;
width: 140px;
}
.content p {
text-align: justify;
margin-left: 10px;
margin-right: 10px;
max-width: 400px;
}
.container p {
text-align: justify;
margin-left: 10px;
margin-right: 10px;
}
div.bar {
margin: 0px;
width: 100%;
padding-top: 6px;
padding-bottom: 6px;
border-bottom: 1px solid #DBDBDB;
border-top: 1px solid #DBDBDB;
background-color: #424242;
opacity: 0.8;
text-align: center;
}
ul {
text-align: justify;
margin-left: 10px;
padding-left: 8px;
margin-right: 10px;
}
.body li {
font-size: 80%;
margin-bottom: 6px;
}
.body li:before {
content: "\25B7";
padding-right: 8px;
}
<div class="nav">
<img src="logotranspwhite.png" height="40px" style="float:left; margin-right:10px; margin-left:15px; border: none;">
<ul>
<li class="current">
<p>Home</p>
</li>
<li><a href="about.html">About</a>
</li>
<li><a href="null">Contact</a>
</li>
<li><a href="gallery.html">Gallery</a>
</li>
</ul>
</div>
It's interesting to note that the hover background extends farther than the .current
background. I tried adding a:hover:not(.nav)
in an attempt to resolve this, but it didn't have the desired effect. I want to maintain the a:hover
for the rest of the page but struggle with balancing out my menu backgrounds.
This issue has me stumped! Your assistance is much appreciated!