Create 2 elements influencing the same CSS

2

Is it possible to create an effect in HOVER with two elements influencing one in common?

For example:

#div:hover "ou" #div2:hover = #elemento{display:block;} 

Could I be clear?

    
asked by anonymous 14.07.2014 / 04:55

1 answer

5

I think I get it. You can set a same set for two or more rules by separating them with commas:

#div:hover #elemento,
#div2:hover #elemento
{
    display:block;
} 

If I misunderstand, feel free to add more information to your question. =)

    
14.07.2014 / 04:59