ID Specifi Hyperlink Styles
A hyperlink styles can be created and assigned to a specific div. This will have all the
hyperlinks present within the div to follow the specified rules. It is irrelevant if the div is
an (#) id or (. ) class.
Code Snippet displays the style for a div id named navone.
#navone a:link {
text-decoration: underline;
color: #005;
background: transparent;
}
#navone a:visited {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:hover {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:focus {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:active {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:link {
text-decoration: underline;
color: #005;
background: transparent;
}
#navone a:visited {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:hover {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:focus {
text-decoration: none;
color: #FFA500;
background: transparent;
}
#navone a:active {
text-decoration: none;
color: #FFA500;
background: transparent;
}