Why doesn't my code work?


#1



https://www.codecademy.com/courses/web-beginner-en-bay3D/2/3?curriculum_id=50a3fad8c7a770b5fd0007a1


It says Oops, try again. It looks like you didn't set your div's opacity to 1. Check the example to in the instructions if you need help!


Replace this line with your code. 
$(document).ready(function() {
    $('div').mouseenter(function() {
        $('div').fadeTo('fast', 1);
    });
});


#2

Works with me. Are you moving your mouse inside the div?


#3

@nicoekkart, @uniluckstudios,
You might try it by using the following defintion in your stylesheet.css file

div {
    height: 60px;
    width: 100px;
    border-radius: 5px;
    background-color: #69D2E7;
    text-align: center;
    color: #FFFFFF;
    font-family: Verdana, Arial, Sans-Serif;
    opacity: 0.2
}