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 Unused CSS Stages Transitions and Transforms 3D Transforms: Part 2

TranslateZ

I tried to get an arrow image to move along the z access but it would not. Here is my css. The blue border works but not the translate:

img[src*="arrow-left"]:hover { -webkit-transform: translateZ(400px); -o-transform: translateZ(400px); -moz-transform: translateZ(400px); -ms-transform: translateX(400px); border: inset #B4B4F1; }

and my HTML: <div class="arrows"><a href="z-life-insurance-details01.php"><img src="images/arrow-left.gif" alt=""/></a><a href="z-life-insurance-details03.php"><img src="images/arrow-right.gif" alt="" width="37" border="0" /></a></div>

3 Answers

Peter Szerzo
Peter Szerzo
22,661 Points

You have -ms-transform: translateX(400px); instead of -ms-transform: translateZ(400px);

Peter Szerzo
Peter Szerzo
22,661 Points

You have -ms-transform: translateX(400px); instead of -ms-transform: translateZ(400px);

Hi Peter, Thank you for the correction!!! Still did not work. Here is the web address. The arrow right at the bottom of the page is the one that should move 400px in the Z axes (this site is my own and is being completely cleaned/upgraded from using Dreamweaver.

http://secureinsurancesolutions.net/z-life-insurance-details02

img[src*="arrow-right"]:hover { -webkit-transform: translateZ(400px); -o-transform: translateZ(400px); -moz-transform: translateZ(400px); -ms-transform: translateZ(400px); }