Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Joseph Quintiliano
seal-mask
.a{fill-rule:evenodd;}techdegree
Joseph Quintiliano
Front End Web Development Techdegree Student 8,138 Points

When using translateY property, or any property for that matter that moves along axis's-- why do positive values go down

I do not get the logic when looking at a graph, obviously, so i was hoping to hear about what the correct logic was to help me remember

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,845 Points

In CSS, when translating properties they are moved within the containing space of their parent element. Like the left and the top properties in CSS, they shift properties to the right and downward in it's available space.

so translateY(20px) and top: 20px in CSS both do the same thing. They both push an element downward in its containing element.