Tailslide
Posts: 6272 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: How do I format individual hyperlinks? - 7/24/2007 3:10:05
It depends slightly on where the ones you want to change are. If they're in a specific div then you can refer to them in the stylesheet using that div as a reference to differentiate them from the other links on the page such as: #sidebar a:link {color:red;}
#sidebar a:visited {color:blue;}
#sidebar a:focus, #sidebar a:hover, #sidebar a:active {color: pink;} If they're not in a specific div or if they're spread all over the page then you'd have to give the links a class like this: <a href="yourlink.html" class="differentlink">Link Text</a> and the CSS would be: a.differentlink:link {color:red;}
a.differentlink:visited {color:blue;}
a.differentlink:focus, #sidebar a.differentlink:hover, #sidebar a.differentlink:active {color: pink;} Obviously you can apply whatever styles you like within those rules - underlining, background colours, whatever.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|