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

Abe Layee
8,378 PointsTransform:translate(-50,-50%) and animation not working.
Hello everyone. How are we doing today? I have a little bug problem with the transform translate property and my animation. My goal here is to center the h1,h2 in the middle equally. By using transform:translate(-50%,-50%), I can't see my text in the middle or the screen or on the screen. Is there anything that I am doing wrong here? Here is my codepen and thank you. http://codepen.io/Layee/pen/qdRZoV
3 Answers

Ted Sumner
Courses Plus Student 17,967 PointsI don't know the precise answer to your question, but offer the following. Transform is experimental. You have to carefully code the correct prefixes for it to work, then it might be unusual. https://developer.mozilla.org/en-US/docs/Web/CSS/transform
Second, I don't recall ever seeing negative %. MDN doesn't address the validity of negative %, but I would test it on other things that take % values.

Abe Layee
8,378 PointsI tried both codepen and Google chrome. This is frustrating me. I don't know why is not even working.

Charles Plante
905 PointsI know this post is a little old but has anyone found a solution to this? I just ran into this problem and I can't figure out a solution nor can I find anyplace except for here that mentions anything about it.
Abe Layee
8,378 PointsAbe Layee
8,378 PointsI added the prefix still is not working.
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsIs transform supported by Codepen? Have you tried it in a normal browser?
As I understand the syntax, 0, 0 is the upper left hand side of the page. Positive on the x axis moves to the right, but positive on the y axis moves down. Percentages moving off the page has no meaning to me, but it may work. I tried changing to pixels and positive values in Codepen and it still didn't work.