How do I create a CSS class for this behavior?

i purchased an HTML template - http://www.display-inline.fr/demo/constellation/template/dashboard.php

When you rollover the menu on the left ( SETTINGS, BANDWIDTH, etc ) you will see that the background changes, it is gradient.

What I would like is to have that background effect in a class, so essentially I can do this:

If I am on the Settings page, I can set the LI class to "CURRENT" which would have that background effect.

If I am on the BANDWIDTH page, then that LI would have the gradient.

I can't figure out how to do this.  The CSS is complicated for me.

Can someone help me make a class to apply to the LI items that will make a "CURRENT" class that applies that background gradient effect?

Thank you!
LVL 1
edvinsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

COBOLdinosaurCommented:
Does the product not have a tool for creating such classes?

Cd&
0
Kyle HamiltonData ScientistCommented:
this is the class that gives the rollover BG effect:

You can duplicate it, rename it .current, then apply to curent item...

 
.favorites > li:hover {
background: url(../images/old-browsers-bg/favorites-bg.png) repeat-x;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
background: -moz-linear-gradient(top,rgba(0,0,0,0.1),rgba(0,0,0,0));
background: -webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,0.1)),to(rgba(0,0,0,0)));
}

Open in new window

0
edvinsonAuthor Commented:
No, but the css class is provided. I figured you could look at it in Firebug or something. I believe the class that does the "rollover" is called mini-menu.

It's just that , that particular class ( or selector ) appears to be CSS3 which I am not familiar with.

Thanks for looking!
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

edvinsonAuthor Commented:
@:kozaiwaniec

such as this? trying it now in case you are busy.

.my-current-class {
background: url(../images/old-browsers-bg/favorites-bg.png) repeat-x;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
background: -moz-linear-gradient(top,rgba(0,0,0,0.1),rgba(0,0,0,0));
background: -webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,0.1)),to(rgba(0,0,0,0)));
}
0
Kyle HamiltonData ScientistCommented:
yes. just apply .my-current-class to your current li.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
edvinsonAuthor Commented:
worked. thanks. if you don't mind, can you tell me how you came to this solution?

I mean, I tried in Firebug, but apparently I missed something.

Thanks!
0
Kyle HamiltonData ScientistCommented:
My personal preference is Chrome, and the Developer Tools it comes with.

Your class was in the mini.php file.

Cheers,
Kyle
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.