Why does first-child / last-child not work on blockquote
It might be a stupid question, but why is first-child / lastchild not working on the blockquotes?
Update: What I want in this example:
- blockquote 1: red
- blockquote 2: default color
- blockquote 3: yellow
- blockquote 4: red
- blockquote 5: yellow
You are looking for
:last-of-type. As the name of the pseudo class implies, this will style the first/last of the element type.
UPDATED EXAMPLE HERE