Problem with exercise - Nested Elements

Problem with exercise 13 CSS SETUP AND SELECTORS Nested Elements

Hello,

What I am doing wrong?

h5.description{
  
}

.Top-Attractions li{
  color: teal;
}

Thank you!

2 Likes

@arcrunner40630,

What are the instructions on the exercise?

Please remember to format your code before posting.

2 Likes

i have the same problem here

In index.html, each destination has a description paragraph below it. Inside each description, there’s a list of attractions. Let’s select the Top Attractions element and make it stand out more by making it teal.

Navigate to style.css. Add a selector that targets all of the h5 elements nested inside elements with class .description.

Please remember to post a link to the exercise so we can navigate to it. Thanks.

2 Likes

https://www.codecademy.com/courses/learn-css-selectors-visual-rules/lessons/css-setup-selectors/exercises/nested-elements?action=lesson_resume&course_redirect=learn-css

1 Like

Notice there are a number of sections, each with a destination and description. The description is the parent and contains a heading,

<h5>Top Attractions</h5>

To select all the headings, we use a descendant selector…

.description h5 {

}
10 Likes

ouff enfin thanks a lot

2 Likes

Thanks a lot for your solution :wink:

2 Likes

Just to note @arcrunner40630
h5.description would select all h5 headings with class="description" check out this link to css diner an intense game to practice writing out many css selectors

5 Likes

Great share on the CSS diner @tommygebru, sooo cute! Do you have more of those?

Like it so much. Thanks for the good find! :medal_military: :raised_hands: :smiley:

1 Like

Thanks …for solution::smile::smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.