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!
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
Krystel Hagan
4,731 PointsRelative 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

Bella Ratmelia
Front End Web Development Techdegree Graduate 28,947 PointsDon't use "=" in css. use ":" instead. Like so:
h1 {
font-size: 2.5em;
}

Krystel Hagan
4,731 PointsOh my I feel dumb, haha

Lindsay Terrell
9,888 PointsI 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
9,888 PointsI 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
9,888 PointsAck. NM.