I've been trying to get my navigation bar links to be one color while the main window has links in another color. I'm using a CSS stylesheet and it works but I think my main rule for a
is overriding any other rules i have set as the .leftside
navigation bar has the wrong color text. I even tried the !IMPORTANT
but still nothing seems to fix it unless I remove the a
rule in the CSS sheet.
Could someone tell me what I'm doing wrong?
HTML:
a {
text-decoration: none;
color: #303030;
}
.leftside {
position: relative;
float: left;
margin-top: 70px;
width: 10%;
height: 600px;
background-color: #4C4C33;
margin-bottom: 10px;
color: white;
}
<div class="leftside">
<a href="gallery.html">Image Gallery</a>
</div>