html - Adding single image after a specific list item -


This is probably a bit of a silly question but to achieve some CSS style around me I have an image targeting specific I want to add items.

This will add the image after all the li items.

 . MenuuStyling li: after {content: url ('../img/arrowActive.png'); }   

What would be the best way to target a Lee item?

use nth-child selector, like this: < Pre> . MenuuStyling li: nth-child (2): after {content: url ('.. /img/arrowActive.png'); }

Where the image will be in the second and .

See more on nth-child

See a snippet below

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -