FancyPrairie
Programmer
I have an unordered list with several sets of buttons (sprites). I want to be able to setup a style to handle the disabled effect for all buttons. Each set of buttons (sprites) contains an enabled state and a disabled state. My style sheet looks something like the following and it works...sort of. The line in red works but only for btn1.
ul.MyNavMenu {list-style-type: none; display: inline; ...}
ul.MyNavMenu input[type="button"][disabled] {background-position: 0 -16px background-image:url(btn1.png)...}
ul.MyNavMenu li input:Btn1 {background-image:url(btn1.png) ...}
ul.MyNavMenu li input:Btn2 {background-image:url(btn2.png) ...}
ul.MyNavMenu li input:Btn3 {background-image:url(btn3.png) ...}
What is the syntax so that I can get it to work for all of the buttons? I have tried this syntax (with no luck)
ul.MyNavMenu input[type="button"][disabled].btn1 {...}
ul.MyNavMenu {list-style-type: none; display: inline; ...}
ul.MyNavMenu input[type="button"][disabled] {background-position: 0 -16px background-image:url(btn1.png)...}
ul.MyNavMenu li input:Btn1 {background-image:url(btn1.png) ...}
ul.MyNavMenu li input:Btn2 {background-image:url(btn2.png) ...}
ul.MyNavMenu li input:Btn3 {background-image:url(btn3.png) ...}
What is the syntax so that I can get it to work for all of the buttons? I have tried this syntax (with no luck)
ul.MyNavMenu input[type="button"][disabled].btn1 {...}