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 trialDavor Budimir
9,206 Pointsconverting from px to ems
I don't know what I'm doing wrong, can someone help me :/
task "Now, using an H2 with a font size of 18px as your context, convert the size of the link inside the H2 from 14px to ems." http://teamtreehouse.com/library/build-a-responsive-website/introduction-to-responsive-web-design/converting-nested-px-to-ems
<!DOCTYPE html>
<html>
<head>
<style>
body { font-size: 16px; }
h1 { font-size: 24px; }
h1 a { font-size: 0.75em; }
h2 { font-size: 0.75em; }
h2 a { font-size: 0.77em; }
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
Davor Budimir
9,206 PointsSo I left h2 { font-size: 18px; } and code worked.
Question answered!