8. Changing your Style


#1

I've clearly done something wrong here, and I am completely unsure on what it actually is. I've checked through a few other similar problems on this, and they fixed it by making their code what mine is, however that doesn't seem to work for me.

Here's my current code.

$(document).ready(function() {
    $('div').height("200px");
    $('div').width("200px");
    $('div').css("border-radius": 10);
});

The error it shows is : "Oops, try again. Did you give your

a height of 200px?"

I've clearly done something wrong, I just can't actually see what that said thing is.


#2

Here you have a mistake

$('div').css("border-radius": 10);

This is correct:

$('div').css("border-radius","10px");

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.