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 CSS Basics (2014) Understanding Values and Units Styling the Intro Paragraph

How do i... (3)

How do i create a new rule that targets the span element inside .intro. Give the span element a bold font weight and an italic font style?

2 Answers

Julian Gutierrez
Julian Gutierrez
19,201 Points
.intro span{
 font-weight:bold; 
 font-style:italic;
}

thank you just copied it

Julian Gutierrez
Julian Gutierrez
19,201 Points

Nothing wrong with copying but I do urge you to take the time to inspect and analyze the solution to better understand it especially with these fundamental skills. At this beginning stage you are laying out the foundation for your skill set and copying without understanding will do you a real disservice.

Doug Ray
Doug Ray
7,493 Points

For this you would start with .intro then add the child selector to target all spans that are within the element with id intro like so .intro > span{ (your rules here}. Where in your case your rules would be the font weight and font style. Hope it helps !

still don't get it. =(

didn't work after the previous comment

Doug Ray
Doug Ray
7,493 Points

If it helps you don't forget to mark as answered and or up vote your fellow students :). Glad you were able to get it !