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 trialChristopher Sea
3,726 Pointsborder-radius using % or rem.
In the video, it was said that when using percentages, they go off of the dimensions of the element. If that's the case, is there any difference in using rems instead of percentages?
1 Answer
Steven Parker
231,236 PointsThey are quite different.
The % unit is relative to the size of the element.
The rem unit is relative to the base font size. It's completely unrelated to the element size.
Christopher Sea
3,726 PointsChristopher Sea
3,726 PointsI thought rems could be used with anything that accepted a length unit.