Hi I have the following in my css file a, a:link, a:visited, a:active { color: rgb(0,0,200); } a:hover { color: red; } Now I want to use a dirrent class for a hyperlink within the same page...(I want the color to be Yellow rather than rgb(0,0,200) which is
red... thanks.
Yaheya Quazi
Director, Admin. Comp. & Systems
University of California, Merced
If this is the only hyperlink that should be yellow I recommend styling it by ID: #link1 { color: yellow; } where:
link alternatively, to use classes (which can be used for multiple items) .className { color: yellow; } where:
link there is also great info on CSS reference available at www.w3schools.com
None
0 Points
313 Posts
How to use two different class for links
Oct 17, 2003 02:46 PM|yaheya|LINK
Director, Admin. Comp. & Systems
University of California, Merced
None
0 Points
1356 Posts
Re: How to use two different class for links
Oct 17, 2003 03:44 PM|nickicl|LINK
Member
70 Points
80 Posts
Re: How to use two different class for links
Mar 11, 2021 06:13 AM|ifour.parth@gmail.com|LINK
If this is the only hypertext link that should be yellow, I would recommend styling it with #ID { color: yellow; } or .classname { color: yellow; }
http://www.ifourtechnolab.com/blockchain-technology