Forum Moderators: not2easy

Message Too Old, No Replies

How to get one link to do something without the others doing it

         

vanese

5:31 am on Mar 7, 2004 (gmt 0)

10+ Year Member



This question may have already been asked, but I searched for it with no luck.

I am needing a code that will allow my list to be in italic, hover bold, with no underline and will allow me to make my links different colors but without all my other links on the page doing these things. I have tried for hours and still haven't figured it out. I hope that this makes since if so please please help. Thanx

zollerwagner

7:03 am on Mar 7, 2004 (gmt 0)

10+ Year Member



It's difficult to say what you need to do without seeing more code, but here's an example of one way to do different treatments for different links.

body#sectionfive #menu li#five a {
background: #000;
border: 1px solid #999;
color: #fff;
font-weight: bold;
}

That's css for a specific link in the page that is:
--contained in a body tag with an id="sectionfive",
--inside a div with an id="menu", and
--in a list item with the id="five".

The spaces between these things seem to matter. For example, li#five is different from li #five).

HTH