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 trialDaniel Tofan
40,910 PointsCan you explain why "transition-duration: 0.4s;" is wrong???
transition-duration: 0.4s;
/* Complete the challenge by writing CSS below */
.button {
background: #4682B4;
}
.button:hover {
background: #356690;
}
<!DOCTYPE html>
<html>
<head>
<title>CSS Transitions</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<a class="button" href="#">Learn More</a>
</body>
</html>
2 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Daniel,
I can't seem to find it in your CSS code, Would you be able to post it?
Typically though it goes in the .button selector so it can transition back and forth. I don't think 0.4s would be an incorrect value in real life but the challenge is looking for a value of .4s not 0.4s.
Hope this helps. :)
Daniel Tofan
40,910 PointsI know. The challenge validator is badly written. 0.4 is a valid number. I've seen several of these in various courses.