MyBB Community Forums

Full Version: How to use two different effects for Hover and Active Menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I want to give two different effects for menu hover and menu active.
How can I do this. In mybb those are in same CSS.

Any solution?
You could separate the CSS, it's not too hard.

class1, class2 {
  stuff;
}

becomes

class1 {
  stuff;
}

class2 {
  stuff;
}

Then just modify the one you want and everything's happy.

You can also have multiple definitions of classes:
class1, class2 {
  stuff;
}

class1 {
  class1-stuff;
}

class2 {
  class2-stuff;
}

The browser will combine the definitions, preferring things from the later definitions if there are conflicts.
Thanks for the help.