Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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