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

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -