Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #24 #222

Open
GeneTheDev opened this issue Mar 13, 2022 · 1 comment
Open

Question #24 #222

GeneTheDev opened this issue Mar 13, 2022 · 1 comment

Comments

@GeneTheDev
Copy link

GeneTheDev commented Mar 13, 2022

For question 24, I feel like I'm entering it correctly "orange, apple:last-of-type" I can not figure out what's missing. I have no prior programming knowledge . I Need help please , I also think there's an error in this question
"apple:last-of-type" selects the last apple, did the same thing with orange but not letting me combine apple and orange

@chriskyong22
Copy link

chriskyong22 commented Mar 14, 2022

"orange, apple:last-of-type" will select all "orange" tags (e.g. <orange>) and the "apple" tag that is the last type.

So your apple:last-of-type is correct but your orange is not correct.
You are selecting ALL orange tags instead of only the last orange.
Therefore, you have to do orange:last-of-type, apple:last-of-type.

Note, the "," is just a separator.
For instance,
apple:last-of-type, orange:last-of-type {
// SHARED STYLES
}

Is equivalent to:

apple:last-of-type {
// SHARED STYLES
}

orange:last-of-type {
// SHARED STYLES
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants