XF 1.1 Need help about add css to 2 div when hover

Fatih Ozcan

Active member
I want add css to 2 div when i hover, demo when normal ( no hover)

0Q9FjBC.png


and when i hover to add "Aj" to css on 2 div
kC2AYSG.png


Thanks you so much, i use xenforo 1.1.2 :)
 

Chris D

XenForo developer
Staff member
For what purpose, exactly?

With CSS you can just use the :hover selector...

Something like:

Code:
.F9a div:hover
{
 color: red;
}

That would basically turn any text in a div element within the .F9a parent class red.

So that should enable you to do whatever hover based effects you need.

If you DO actually need a class appending automatically on hover (again, why?) then that would require some custom jQuery/JavaScript and is therefore probably beyond the scope of this forum unless you find a developer who is familiar with jQuery and javascript.
 

Fatih Ozcan

Active member
For what purpose, exactly?

With CSS you can just use the :hover selector...

Something like:

Code:
.F9a div:hover
{
color: red;
}

That would basically turn any text in a div element within the .F9a parent class red.

So that should enable you to do whatever hover based effects you need.

If you DO actually need a class appending automatically on hover (again, why?) then that would require some custom jQuery/JavaScript and is therefore probably beyond the scope of this forum unless you find a developer who is familiar with jQuery and javascript.

i want when i hover to class yAw then on 2 div below will add class "Aj" , i want make a navigation like gg+
you can see demo at that :)
 
Top