Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

CCS descendant selctors I am at a complete loss on the 2nd

3 Answers

It would be just like task 1, but you need to select the paragraph inside a element with the class 'main-content'. So select that by doing ".main-content p" don't forget the "." infront of main-content, because you are selecting a class and not an element

Brian,

I appreciate your response...really! I finally figured out what was supposed to take place in the CSS challenge. I assumed since this is a learning environment between html and CSS that scrip was supposed to be written on both sides. So I was attempting to write the code in HTML that would be linked with the CSS or visa versa. Not so...just the CSS side.

Sarah

Hi, Sarah Thiemann , indeed you are right, the HTML view is there, this way you can have a look at the structure to write correctly your css.

Here you are asked to select the descendant within a specific element, so in another word, the child element of a specific element.

Css should be written this way:

/*step1*/
header span{
 font-size: 26px; 
}

/*step2*/
.main-content p{
 font-weight: bold; 
}

Thank you Geoffrey,

I figured out the question was only asking for Css and not the html counterpart. Based on previous tasks in the html class some of the questions needed both to be updated. I did not scroll down on the html side to see the <p> code was already there and needed the Css counterpart. I won't make that mistake again!

Sarah