2

Possible Duplicate:
What does + mean in CSS?

I don't understand what the "+" does in this context.

.test ul li:hover + li a img {
  width:60px;
  height:60px;
}
Community
  • 1
  • 1
HelloWorld1
  • 13,688
  • 28
  • 82
  • 145

1 Answers1

2

It means any li immediatly following a li:hover.

See CSS Selectors on W3.

E + F: Matches any F element immediately preceded by a sibling element E.

And:

Thus, the following rule states that when a P element immediately follows a MATH element, it should not be indented:

math + p { text-indent: 0 }

Community
  • 1
  • 1
Oded
  • 489,969
  • 99
  • 883
  • 1,009