How can I utilize the cascade to override only the second image in a multiple background image declaration?
I have specified a standard style for li
s, with two background images (the kitten, and the fish on the right side). I've also specified a style for li.secondary
where I want to change only the second of the two background images:
li {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAA/ElEQVR42q2WYQ3DIBSE5wAJk1AJSKiESpiESakEJCChEpAwCW/vJSw0LPQoHMn3A0q5R7leeIjIFNo2JSm+Zz5DSAy6oLan8lKiIjV5fGu8u+TnrkfIKftpUQGks3Au8qNE6yOx1Sb/xPJYyH3EURW4QsHGZ5NB3K0dDpDwDvEZysAZvvP4znVpwTVcmrAgLsLX/yXhP+xfrOyuza00sbFZ7p5TAGlyYMF/J4axNClOvKKVJnEmTa6gpgkSM0Ca8HdITxOiSwuzLjVoAUAUxIWQBXESMQTpSWQd4r0GuxiJsZPII0F6EnUZg5hES7dZWEkExPj3GiDCv9d8AVEGli2R88rKAAAAAElFTkSuQmCC) repeat-y 90% center,
#CCC url("http://placekitten.com/275/300") repeat right center;
margin: 1em;
padding: 1em;
color: #FFF;
font-weight: bold;
}
li.secondary {
background: #CCC url("http://placekitten.com/325/300") repeat left 10%;
}
JSFiddle: http://jsfiddle.net/KatieK/9zcnp/1/
But the new declaration for background:
blows out the first background image (the fish). How can I address only the second background image in a cascading rule?