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

Give the span element a bold font weight and an italic. (Shorthand)

Hi All,

My answer to the question above is as shown as below, but I would like to ask if it is possible to write a shorthand version for the code below?

exp: .intro span {font :bold italic}

Thanks in advance!

Original code as below = )

/* Complete the challenge by writing CSS below */ .intro { font-size : 1.25em; line-height: 1.6; }

.intro span {font-weight:bold; font-style:italic; }

1 Answer

I don't know of any shorthand, but you can always check the MDN docs at https://developer.mozilla.org/en/docs/Web/CSS/font .

Hope this helps, Cheers.