Exercise 205-07-10: Write some :nth-last-of-type selectors

Example 1 - :nth-last-of-type(3)

12th last of type

11th last of type

10th last of type

9th last of type

8th last of type

DIV element should be ignored

7th last of type

6th last of type

5th last of type

4th last of type

3rd last of type

DIV element should be ignored

2nd last of type

Last of type

Example 2 - :nth-last-of-type(3n)

12th last of type

11th last of type

10th last of type

9th last of type

8th last of type

DIV element should be ignored

7th last of type

6th last of type

5th last of type

4th last of type

3rd last of type

DIV element should be ignored

2nd last of type

Last of type

Example 3 - :nth-last-of-type(3n+1)

12th last of type

11th last of type

10th last of type

9th last of type

8th last of type

DIV element should be ignored

7th last of type

6th last of type

5th last of type

4th last of type

3rd last of type

DIV element should be ignored

2nd last of type

Last of type

Example 4 - :nth-last-of-type(3n-1)

12th last of type

11th last of type

10th last of type

9th last of type

8th last of type

DIV element should be ignored

7th last of type

6th last of type

5th last of type

4th last of type

3rd last of type

DIV element should be ignored

2nd last of type

Last of type

Example 5 - :nth-last-of-type(even)

even last of type

odd last of type

DIV element should be ignored

even last of type

odd last of type

even last of type

odd last of type

even last of type

DIV element should be ignored

odd last of type

even last of type

odd last of type

even last of type

odd last of type

Example 6 - :nth-last-of-type(odd)

even last of type

odd last of type

DIV element should be ignored

even last of type

odd last of type

even last of type

odd last of type

even last of type

DIV element should be ignored

odd last of type

even last of type

odd last of type

even last of type

odd last of type