Css equivalent: eq

I'm looking for a way to replace the jquery path selector with a valid css selector.

I got my jquery selector like this

div>div:eq(0)>span>span:eq(3)>a>span { background-image:url('../bigData.png'); }

      

And I need something that I can write to my css file to get the style renderer.

+3


source to share


1 answer


In this case, I think you can choose : nth-of-type

div>div:nth-of-type(1)>span>span:nth-of-type(4)>a>span { background-image:url('../bigData.png'); }

      



But in css there is no equal method for jquery : eq ()

+4


source







All Articles