Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with links using css 1

Status
Not open for further replies.

zavsays

Technical User
Joined
Apr 19, 2001
Messages
117
Location
US
Hi Guys

I'm working on a site and have succesfully managed to get my links to change color through CSS (white to orange) using the "hover" command but I would like to have some of the links on the page...
• change to a different color
• or just remain white and not change color at all

Thanks
 
Hi

Create a custom style (class) - but name it whatever you want of course!

.otherlink

You don't have to give it any properties, it just needs to exist in the css.

Now use the css selector and in the dropdown box where it normally says a:hover, a:visited etc. type in the name below:

a.otherlink:hover

and press OK. Now make whatever changes to this style that you want to view on your page - in your example set the colour to a new colour, or white. Once you have created the style it's back to your page.

Any links that you wish to apply this new style to now need to be using the class "otherlink". Do this by selecting the link, make sure that you are selecting the "a" tag and click on the class "otherlink" in the css styles panel. View your page and marvel at your command of css!

[penguin]
Derren
[The only person in the world to like Word]
 
worked perfect. great instructions too.
Thanks!
 
Glad you liked them. If you think they are worth sharing, mark the post as helpful so that others know where to look. Derren
[The only person in the world to like Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top