CSS isn't being applied in aspx page. It works when the css is defined in the same page (href references a.classname) but when it is put into a stylesheet it is not applied. When element is inspected, Chrome says user agent stylesheet is being applied.
It says that a:-webkit-any-link is being applied to hyperlinks (user agent stylesheet)
Any ideas why this isn't working?
I reference the class for the hyperlink using:
<div class="summaryitem"><a ID="hl" runat="server" href="" class="someclassname">Hyperlink CSS should be applied to this</a>
Here's the CSS I'm using:
a.someclassname:link {
font-weight: bold;
color: #555;
text-decoration:none;
}
a.someclassname:visited {
font-weight: bold;
color: #555;
text-decoration:none;
}
a.someclassname:hover {
font-weight: bold;
color: #555;
text-decoration:none;
}
a.someclassname:active {
font-weight: bold;
color: #555;
text-decoration:none;
}