I\'ve a code of some what like this:
It depends entirely upon which image you want to target. Assuming it's the first (though the implementations are similar for both) image:
#foo img[src="bar.png"] {
/* css */
}
#foo img[src^="bar.png"] {
/* css */
}
#foo img:first-child {
/* css */
}
#foo img:nth-of-type(1) {
/* css */
}
References: