PDA

View Full Version : Can i use multiple css files for the same work?


LNinio
06-16-2006, 07:15 PM
I wonder if i can use different css files for the same work in the same page.
What i mean is for example we have 2 sentences (that are links) in the same page and we want the first to have a green hover effect (become green when mouse over) and the other sentence to have a red hover effect (become red when mouse over)
I tryed to do that by making 2 different css, external, files but it doesn't work!!!

Can anyone help me?

dthomsen8
06-17-2006, 11:13 AM
I wonder if i can use different css files for the same work in the same page.
What i mean is for example we have 2 sentences (that are links) in the same page and we want the first to have a green hover effect (become green when mouse over) and the other sentence to have a red hover effect (become red when mouse over)
I tryed to do that by making 2 different css, external, files but it doesn't work!!!

Can anyone help me?

You can do this by having two different classes, one for each style, and the classes can be defined in just one external style sheet. You can also do this by defining the styles in the code for each sentence.

In general, I would say it is unwise to use anything other than the standard colors for hover and other mouseover effects for links.