English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

#yourdivname a:visited {color: #FF0000}

If this is the only place you are changing the color of "a", you may see it change globally. If it does, it's annoying, but you can just write a:visited {color:#FFF} somewhere else, without the div prefix and that is like a global setting for it. I usually keep my global or default settings near the top of the css file.

2007-12-17 15:34:43 · answer #1 · answered by anon 3 · 1 0

You wrap your menu links in a div and give it an id, then use that id to select just the links within that div.

In your stylesheet:

#navigation a:link { color: white }
etc...

In your markup:

2007-12-18 00:59:58 · answer #2 · answered by daa 7 · 0 0

You can create a new class to apply to just the div of the text you want the different text style settings for.

Like so:

special text


And use this in your style sheet, with the colors of your choice.

.class1 A:visited {
color: #FFFFFF;
}

.class1 A:active {
color: #FFFFFF;
}

.class1 A:link {
color: #FFFFFF;
}

.class1 A:hover {
color: #FFFFFF;
}


..........................................

And obviously just leave out the active/hover/visited etc. if they are to use the same style as the rest of the page and only the regular link state should be different.

2007-12-17 23:36:55 · answer #3 · answered by slothums 4 · 0 0

.whitelink{
font-family:arial,Tahoma,verdana;
font-size:12px;
font-weight:normal;
color:#FFFFFF;
text-decoration:none
}
.whitelink:hover{
font-family:arial,Tahoma,verdana;
font-size:12px;
font-weight:normal;
color:#FFFFFF;
text-decoration:none
}

apply this class 'whitelink' to tag
Test

and u can change the options in class as per your choice.

2007-12-18 00:44:41 · answer #4 · answered by Shree J 2 · 0 0

fedest.com, questions and answers