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

Level 13, Lesson 2. Error, any help?

Here is the exercise that I believe is done correctly, but when I click on submit it gives me the following error:

Error: Assign translated class to the div with the text Translate me!.

Exercise (check the last part of the code, that's where the error should be, but it looks correct to 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 class="translated">Translate me!</div>
<div class="scaled">Scale me!</div>
</body>
</html>

Any idea why this is happening? did I make a mistake?
Thank you.
by

5 Answers

kshitijrana14
Try this one:

<!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>
gianni88
It's the same as mine, but I tried it anyway and it doesn't work :( I can't access the next level due to this error!
gianni88
Can anybody help me? I can't move to the next lesson
iamabhishek
Hi gianni88, very sorry for the late resolution. Yes the code that you are trying to submit is correct, there was some goof-up at our end. It is fixed, and you should now be able to submit the lesson.

Please try again now. If you face any issue in some other lesson, create a separate question in Forum for that.

Happy learning.
gianni88
It worked! thank you so much :)

Login / Signup to Answer the Question.