this snippet of code is a sample where I am attempting to target the first child, which happens to be a <span>
<div class="textTextmenu">
<img src="pic/postimage.png"/>
<span>
I need to select this span
</span>
<span>
span 2
</span>
</div>
I am looking to achieve this using the CSS selector first-child, but I am unsure of how to correctly implement it.
Here is an example of how I want to use it:
.textTextmenu span:first-child{
/*
add relevant code here
*/
color:red;
}