|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
If you look at http://www.zdnet.com with IE, you see the menu bar on top has CSS applied and the link color changes on mouseover (white to red w/peach background). On their content part, they are able to do the CSS using different colors on mouseover (navy blue to red). How do they do this? Do they have two style sheets? Do I need two style classes and if so, how do I make them? If this doesnt make sense, my alternative question is: How do I change the color of a link on mouseover, for example it be red if the link is originally blue, if text/css is applied using different colors already (like white to yellow)?
------------------ Dylan http://www.derivy.com |
|
#2
|
|||
|
|||
|
It is actually one stylesheet, but there are several ways to set up the display. In my stylesheets settings, I can write:
DIV UL > LI P {color : orange} - this will only allow a paragraph to be orange if it is a part of a list item only as an un-ordered list within a div element. Yet, all list items without the P tags will be the default colour A.topic : link {color:red} A.topic : visited {color range}A.topic : hover {color:blue} A.topic : active {color urple}A : link (color : black) A : hover {color : white} -In this case, if you set up a link with a class attribute named "topic" then the link will be red, changes to blue if you move the cursor over it, changes to orange if you visited that link, and purple after the click. However, every other link will be black and turns to white if you move the cursor over it. If you have any questions, feel free to ask me them. ------------------ Yanik! Edmonton, AB |
|
#3
|
|||
|
|||
|
I have just found out how to do it just after you posted. But you also had the same solution. And it is most appreciated. Thanks for the reply.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Two style sheets ?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|