Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 13 Lesson 2 CSS 2D Transform

Please help, I am unable to move on and the Help area isn't much help at all.


<!DOCTYPE html>
<html>
<head>
<title>CSS transform property</title>
<style>
div{
width: 150px;
height: 80px;
margin: 100px;
background-color: #4535aa;
color: white;
}
.rotated
{
transform: rotate(-60deg);
}
.skewed
{
transform: skew(25deg, 45deg);
}
.translate-me
{
transform: translateX(100px);
}
.scaled
{
transform: scale(50deg, 150deg);
}


</style>
</head>
<body>
<div class="rotated">I am rotated</div>
<div class="skewed">I am skewed</div>
<div class="translate-me">Translate me!</div>
<div class="scale">Scale me!</div>
</body>
</html>
by

2 Answers

NeelaPrasad
"<!DOCTYPE html>
<html>
<head>
<title>CSS transform property</title>
<style>
div{
width: 150px;
height: 80px;
margin: 100px;
background-color: #4535aa;
color: white;
}
.rotated
{
transform: rotate(-60deg);

}
.skewed
{
transform:skew(25deg,45deg);

}
.translated{
transform:translate(100px);
}
.scaled{
transform:scale(50%,150%);
}
</style>
</head>
<body>
<div class=""rotated"">I am rotated</div>
<div class=""skewed"">I am skewed</div>
<div class=""translated"">Translate me!</div>
<div class=""scaled"">Scale me!</div>
</body>
</html>"
jarixa
I'm very grateful for your help.. for some reason it's not letting me move on.
Error message: Assign translated class to the div with text Translate me!
I tried changing it up .translate, .translated, .translate-me! .translate-me, Translate-me


<!DOCTYPE html>
<html>
<head>
<title>CSS transform property</title>
<style>
div{
width: 150px;
height: 80px;
margin: 100px;
background-color: #4535aa;
color: white;
}
.rotated
{
transform:rotate(-60deg);
}
.skewed
{
transform:skew(25deg,45deg);
}
.translated
{
transform:translate(100px);
}
.scaled
{
transform:scale(50%,150%);
}

</style>
</head>
<body>
<div class="rotated">I am rotated</div>
<div class="skewed">I am skewed</div>
<div>Translate me!</div>
<div>Scale me!</div>
</body>
</html>

Login / Signup to Answer the Question.