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

HTML Build a Responsive Website Introduction to Responsive Web Design Converting Nested PX to EMs

Jeremiah Chersin
Jeremiah Chersin
3,601 Points

Having a problem with task 2 of 3 on converting px to ems.

My code is below.

<!DOCTYPE html> <html> <head> <style> body { font-size: 16px; } h1 { font-size: 24px; } h1 a { font-size: .750em; } h2 { font-size: 18px; } h2 a { font-size: 1.125em; } p { font-size: 12px; } p a { font-size: 10px; } </style> </head> <body> <h1><a href="#">Smells Like Bakin</a></h1> <h2><a href="#">Sizzling</a> in the Oven</h2> <p>Opposites really do attract, especially in <a href="#">our kitchen</a>! We combine unexpected flavors that melt together to create ironically delicious desserts.</p> </body> </html>

1 Answer

Sreng Hong
Sreng Hong
15,083 Points

14 / 18 is the answer