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


Why is it wrong? Is It an Issue?(Stage 11 Transitions and Transforms 2D Transforms Quiz)

As I mentioned in the title in the 2D Transforms Quiz, I think the answer to the question "Which of the following will position the transform-origin at the bottom-right corner of an element?" is "transform-origin: right bottom;". Is it wrong?

It shows me wrong!

2 Answers

Hi Philip,

transform-origin: right bottom; should be a correct answer also. Both of those keywords convert to 100% and their order does not matter.

I think it's a good habit to get into to always specify horizontal first when using keywords because when you use length or percentage values you have to specify horizontal first.

You can look at this mdn page for more info: https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin

Good Answer!

Dai Phong
Dai Phong
20,395 Points

It's C, right bottom is not correct order

Yes, I know that it's correct, too, but shouldn't B also work?

Dai Phong
Dai Phong
20,395 Points

B not work, it is not correct order value, it is must be bottom right

But normally the first value affects the X-Axis and the second the Y-Axis. Here at 3:40 is an example. Guil types center top and not top center.

Dai Phong
Dai Phong
20,395 Points

It apply for perspective, not for transform property, x-axis is center and y-axis is top are correct, but transform property are position, not perspective. Sorry for bad english

Ok, Thanks!

PS: I'm not an native speaker, too (Austria)! :)