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 trialChristian Kristoffersen
32,531 PointsCan't seem to figure this one out :( Transforms Challenge
Can't seem to figure this one out :(
/* Complete the challenge by writing CSS below */
.badge {
-webkit-transform: rotate(15deg) translate(-50px);
}
<!DOCTYPE html>
<html>
<head>
<title>Transforms</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<img class="badge" src="css-badge.png">
</body>
1 Answer
Sean T. Unwin
28,690 PointsHi Christian,
There a couple of issues here.
- The negativity of the values should be reversed. (hint: counter-clockwise usually means a negative degree)
-
translate
takes 2 parameters -- x and y. Alternatively, since the request is to move down we can usetranslateY
.
Christian Kristoffersen
32,531 PointsChristian Kristoffersen
32,531 PointsArh thank you very much! Stupid mistake, but you were a big help, Sean! Kind regards!