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 CSS - Beyond the Basics Understanding CSS Transitions and Transforms Transforms Challenge

Next, add a transform function that evenly scales .badge by 1.5.

Can someone help me I forgot how to:

add a transform function that evenly scales .badge by 1.5.

style.css
/* Complete the challenge by writing CSS below */
.badge {
  transform: rotate(-15deg), translateY(50px);
}
index.html
<!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>

2 Answers

Tiffany McAllister
Tiffany McAllister
25,806 Points
.badge {
  transform: rotate(-15deg), translateY(50px), scale(1.5);
}

Thanks!!

The best answer question WORKS.

if anyone was wondering.