Build a Book Inventory App 46

46. You should have an attribute selector to target the first descendant of span elements that have the word one as a part of their class value.

47. You should use an attribute selector to target the first descendant of span elements that have the word one as a part of their class value and set its background-image property to use a linear-gradient.

My Code :slight_smile:

span[class*=“one”]:first-child {

background-image: linear-gradient(to right skyblue, pink);

}

span[class*=“two”] :nth-child(2) {

background-image: linear-gradient(to right white, red);

}

span[class*=“three”] :last-child {

background-image: linear-gradient(to right blue, red);

}

Can you please help me with this am stuck here!!!

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like