Advanced CSS Animator Support Product Page

Moving css from in-line to style sheet

Asked 15 Feb 2011 16:15:37
1
has this question
15 Feb 2011 16:15:37 Jane Davies posted:
Hi,

I have a list of links where I have added some simple css animation eg <li onclick="dmxAnimate(this, {}, {fontSize:'16px'})" onmouseover="dmxAnimate(this, {}, {color:'#000'})" onmouseout="dmxAnimate(this, {}, {color:'#4a4a4a'})">

However, I would prefer to add this to the style sheet rather than applying it to every link on the web page. Please can you show me the correct way to do this.

Many thanks, Jane

Replies

Replied 15 Feb 2011 16:58:38
15 Feb 2011 16:58:38 Miroslav Zografski replied:
Hello Jane,

You need ti check the following link :
www.w3schools.com/CSS/css_pseudo_classes.asp

Here you will find a reference to the CSS pseudo classes which are used when you like to have changes of a certain element depending on the user interaction. Those will be as follows :
:hover,:active,:focus,:visited

Regards,

Reply to this topic