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 trialangelfirenze
10,870 PointsUsing 'em[s]' as a measurement versus ems as 'emphasis'...
How would I go about working with both the measurement of 'em' versus the emphasis tag? It seems to me that the code would break unless I'm missing a detail for differentiating each from the other.
2 Answers
Steven Parker
231,275 PointsThis should probably go in the CSS category, but there's no issue with confusing tag names with measurement unit because they are used in completely different ways. For example, this CSS rule uses both:
em { /* this is the tag name, a unit would never go here */
margin: 2em; /* but ONLY a unit would go here */
}
angelfirenze
10,870 PointsCool! Wow!