Child Selectors Tutorial

Challenge:

Follow the prompts on the page to style each set of items using child selectors only. Use your notes from class and resources online (Google) to help you do this. The best web designers/developers will not always know all of the answers. BUT, the best web designers/developers can find an answer.

Fruits

Make the first item red (Example)

Beans

Make the last item orange (Example)

Fried Stuff

Make the 5th item purple (Example)

Breads

Make the odd items pink (Example)

Pies

Make every third item cyan starting with the first item. (Example)

Vegetables

Make the first two items yellow and the last 4 items green. (Example)

Cheeses

Bonus Point: If there are only 3 items, make all of the items tan. (Example 1) (Example 2)