Problem with exercise - Nested Elements


#1

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

@arcrunner40630,

What are the instructions on the exercise?

Please remember to format your code before posting.


#3

i have the same problem here


#4

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.


#5

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


#6

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


#7

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 {

}

#8

ouff enfin thanks a lot


#9

Thanks a lot for your solution :wink:


#10

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


#11

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:


#15

Thanks …for solution::smile::smile:


#16

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