Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do change <li> elements that are NOT active with pure CSS?

I understand how to change the description of an active <li> element

li:active {
...declarations...
}

But how can I change all the other elements that are NOT active?

For example, all my elements are in bold, but when I select one of them, all the others are changed back to normal.

Thanks!

like image 414
Roberto Avatar asked Dec 06 '10 16:12

Roberto


1 Answers

I'd imagine li:not(:active) should at least theoretically work.

like image 88
Matti Virkkunen Avatar answered Oct 11 '22 10:10

Matti Virkkunen