I'm having a heck of a time trying to combine a diagonal linear gradient and regular background-image
together plus apply it only to the second h3
element; here is what I've got:
HTML
<div id="something">
<div><h3>...</h3></div>
<div><h3>...</h3></div>
<div><h3>...</h3></div>
<div><h3>...</h3></div>
</div>
CSS
#something h3:nth-child(2) {
background: linear-gradient(135deg, rgba(221,221,221,1) 0%,
rgba(221,221,221,1) 95%, rgba(0,0,0,1) 95%, rgba(0,0,0,1) 100%),
#ddd url(/assets/img/bullet.png) left 12px no-repeat;
}
I've had the nth-child
selector working on other stuff previously before and this gradient is from an online generator, what am I missing here?