HighDots Forums  

Re: CSS A (link-anchor) syntax question

alt.html alt.html


Discuss Re: CSS A (link-anchor) syntax question in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob W.
 
Posts: n/a

Default Re: CSS A (link-anchor) syntax question - 05-05-2008 , 04:00 AM






still just me schreef:
Quote:
I have a question about the syntax of CSS when used on a link (anchor)
tag.

I know how to do change the default link characteristics in a CSS file
and redefine the general link colors:
a:link{color:#FF0000}
a:visited{color:#00FF00}

But how do I define another second style of link? I want to do
something like this(below), but I don't know the syntax for the link
portion:

.otherLinkStyle{a:link:color:#000000; a:visited:color:#CCCCCC;
text-decoration:none;}

Thanks,



I understand that you want one extra propertie,
that is the same for both a:link and a:visited
this would result in the following:

a:link {color:#FF0000};}
a:visited {color:#00FF00};}
a:link, a:visited {text-decoration:none;}

--
Rob


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.