i have many links on my page but i dont want them to all look the same.
in CSS ive set a style for <a>
but i dont want them all to look like that
can anyone tell me how i can make diffrent styles of linkswell you can align a certain class or id to a link. for example.
CSS
#new a:link, #new a:visited {
text-decoration: none;
color: #000;
}
#new a:hover {
text-decoration: none;
color: #999;
}
and then for your HTML:
<div id="new">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" title="Link">LINK</a>
</div>
alternatively:
CSS
a.new:link { color: #000; }
a.new:visited { color: #000;}
a.new:hover { color: #999;}
and then for your HTML:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" class="new" title="Link">LINK</a>
I hope this helps you.
Best Wishes,
DavidJust because something can be done, doesn't mean that it should. (Pardon my soapbox.)
What is the specific reason why you want some variation in the appearance of the links? Consistency is important, so there should always be a good reason if you deviate from the norm.
David Hits for a news thing im doing on my site.
the latest news heading is bigger than the past stories
so the size of the text is obviously bigger and it and the link to the story
so i need to be able to have some links on my page diffrentSo something like this...
<!-- w --><a class="postlink" href="http://www.saveDisney.com">www.saveDisney.com</a><!-- w -->
in CSS ive set a style for <a>
but i dont want them all to look like that
can anyone tell me how i can make diffrent styles of linkswell you can align a certain class or id to a link. for example.
CSS
#new a:link, #new a:visited {
text-decoration: none;
color: #000;
}
#new a:hover {
text-decoration: none;
color: #999;
}
and then for your HTML:
<div id="new">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" title="Link">LINK</a>
</div>
alternatively:
CSS
a.new:link { color: #000; }
a.new:visited { color: #000;}
a.new:hover { color: #999;}
and then for your HTML:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" class="new" title="Link">LINK</a>
I hope this helps you.
Best Wishes,
DavidJust because something can be done, doesn't mean that it should. (Pardon my soapbox.)
What is the specific reason why you want some variation in the appearance of the links? Consistency is important, so there should always be a good reason if you deviate from the norm.
David Hits for a news thing im doing on my site.
the latest news heading is bigger than the past stories
so the size of the text is obviously bigger and it and the link to the story
so i need to be able to have some links on my page diffrentSo something like this...
<!-- w --><a class="postlink" href="http://www.saveDisney.com">www.saveDisney.com</a><!-- w -->