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

Krystel Hagan
Krystel Hagan
4,731 Points

Relative Length Units - Code Challenge

Q: Currently, the base font size is the browser's default size of 16px. Using the em unit, set h1 font size equivalent to 40px.

My Answer: h1 { font-size= 2.5em; }

I am not sure what I am doing wrong/missing?

5 Answers

Krystel Hagan
Krystel Hagan
4,731 Points

Oh my I feel dumb, haha

Lindsay Terrell
Lindsay Terrell
9,888 Points

I don't understand how you got 2.5. It seems like I am missing a step - to answer the question, don't we need to know what the h1 font size is? Or is the h1 font size relative to the p font size common knowledge?

Lindsay Terrell
Lindsay Terrell
9,888 Points

I don't understand how you got 2.5. It seems like I am missing a step - to answer the question, don't we need to know what the h1 font size is? Or is the h1 font size relative to the p font size common knowledge?