how to use css nth of type selector?

Report
Question

Please briefly explain why you feel this question should be reported .

Report
Cancel
Share it...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

I can highlight any specific element for example h3 using css nth of type selector

Can i use css nth of type selector to highlight any specific li list item?

 

in progress 0
css admin 6 months 1 Answer 239 views 0

About admin

Answer ( 1 )

  1. Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    Yes u can highlight any specific list item(li) by using this code:
    li:nth-of-type(3) {
    background: red;
    }
    This code will change background of 3rd list item to red.

Leave an answer

Browse