Saturday, 28 September 2013

Ignoring style for a concrete tag

Ignoring style for a concrete tag

I have a css file for my entire site. In that css file, for example, I
have the following style defined for all my reference links such as:
a{
color: #333;
padding-right: 3px;
padding-left: 3px;
text-decoration: underline;
outline-width: medium;
outline-style: none;
outline-color: invert;
}
a:link, a:visited, a:active, a:hover{
color: #333;
}
so all my links in my site have above styling, but there are only three
links in my page that I do not want to apply this style, I mean, I want to
ignore it in order to be not applied, so how to ignore style for below
links?
<nav id="NavigationMenu">
<ul id="menu">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
</ul>
</nav>

No comments:

Post a Comment