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

CSS CSS Basics (2014) Enhancing the Design With CSS Border Radius

border-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
Steven Parker
230,235 Points

They 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.

I thought rems could be used with anything that accepted a length unit.