As I embark on my first CSS project, I find myself a bit puzzled by how to prevent the green background of the navbar buttons from spilling over onto the built-in buttons in the code viewer (SyntaxHighlighter) I am utilizing. When you hover over the code box on the website linked below, buttons for copying and printing pop up, but they also have a green background due to the CSS formatting applied to my navbar. Is there a simple solution to ensure that the CSS file for the navbar only affects the navbar itself and not the styling of the code snippet section?
ul {
list-style-type: none;
margin: 0;
padding: 0;
padding-top: 6px;
padding-bottom: 6px;
}
li {
display: inline;
}
a:link,
a:visited {
font-weight: bold;
color: #FFFFFF;
background-color: #98bf21;
text-align: center;
padding: 6px;
text-decoration: none;
}
a:hover,
a:active {
background-color: #7A991A;
}