06-01-2023, 02:50 AM
I think you can get alternating backgrounds in quotes using nth-child.
Try something like this:
blockquote:nth-child(even) {
background: red;
}
blockquote:nth-child(odd) {
background: pink;
}
I used to do so much CSS but it's crazy how much you forget when you don't do it for a couple years.
Try something like this:
blockquote:nth-child(even) {
background: red;
}
blockquote:nth-child(odd) {
background: pink;
}
I used to do so much CSS but it's crazy how much you forget when you don't do it for a couple years.

2 users liked this post: