My CSS skills are still in the beginner stage and I am currently struggling to troubleshoot an issue with my code. The HTML:
<div id="loginForm">
<span class="dottedLink"><a href="resetlogin">Recover login details</a></span><br>
<span class="dottedLink"><a href="signup">Create an account</a></span>
</div>
<div id="mainpageSplashImage"></div><br>
<div id="titleDesciption">This is the Title</div>
<div id="registerButtonPlacement"><a href="signup" class="linkButton">Register</a></div>
The CSS:
.dottedLink {
font-family: sans-serif;
font-size: .9em;
}
.dottedLink a, a:visited, a:active {
color: #0099CC;
text-decoration: none;
border-bottom: 1px dotted;
}
.dottedLink a:hover {
text-decoration: none;
border: none;
color: #990000;
}
.linkButton {
background: #CC0000;
border: 1px solid #888888;
padding: 5px;
color: #FFF;
font-size: 1em;
cursor: pointer;
font-family: sans-serif;
text-align: center;
text-decoration: none;
border-bottom: none;
}
.linkButton a, a:active, a:visited {
color: #FFFFFF;
}
.linkButton:hover {
background: #FFFFFF;
border: 1px solid #888888;
padding: 5px;
color: #CC0000;
font-size: 1em;
cursor: pointer;
text-decoration: none;
}
The issue I'm facing is that changing the 'color' property of 'dottedLink' also affects the color property of 'linkButton'. This problem seems to occur only in Firefox and not other browsers. Any help on resolving this frustrating problem would be greatly appreciated.