Topic: Menu li a (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 02-11-2009 18:43
I have tried to color an menu li element with an a tag in it. code: .swedish li a { color: yellow; background-color: blue; } .swedish li a:hover { color: blue; background-color: yellow; }
|
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 02-11-2009 19:24
The problem is that the css specifices "a tag with class 'swedish' which contain a <li>-tag which again contains an <a>-tag". code: li.swedish a { color: yellow; background-color: blue; } li.swedish a:hover { color: blue; background-color: yellow; }
|
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 02-11-2009 19:33
Thank you! |
Maniac (V) Inmate From: Eagleshieldsbay, Sweden |
posted 02-11-2009 20:51 |