CSS Diner Selector Question!!

Asked 2 years ago, Updated 2 years ago, 123 views

Sir, I've solved all the rest of the problems, but I don't know how to solve these two problems using two choices

fast-frontend css game selector match

2022-09-22 11:43

2 Answers

Hello Kyungjae! - ^

Let me answer your question.

Question 19 is to select a moving <bento /> element using the :nth-last-child(n) selector. The key to this problem is how many nth-child positions the parent element has from the last of its children.

The moving <bento /> element is the third positioned element of the parent, and the selector can write:

bento:nth-last-child(3)

.

Question 20 is to select the moving <apple/> element using the :first-of-type selector. The key to this problem is to find the first element of the same element (of-type).

The moving <apple /> element is the first of the apple elements. The selection code for finding the destination is as follows:

apple:first-of-type

.


2022-09-22 11:43

Thank you for your kind reply, teacher!


2022-09-22 11:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.