8/14 Changing Your Style


#1

This is my code what is wrong with that?

$(document).ready(function() {

$("div").height("200px");
$("div").width("100px");
$('div').border-radius("10px");

}):

8/14 Changing Your Style?
#2

@adishri22,
Please read
https://discuss.codecademy.com/t/8-14-changing-your-style/36751/2?u=leonhard.wettengmx.n


#3

I have read it but still I am not getting it


#4

@adishri22

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

#5

I have given like this-

$('div').css("height:200px");
$('div').css("width:200px");
$('div').css("border-radius:10px");

And also like this-

$('div').css("height:200px","width:200px","border-radius:10px");

But still "Oops, try again. Did you give your

a height of 200px?" error is there...

#6

@adishri22,

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

http://api.jquery.com/css/


#7

Sorry but I used this--

$(document).ready(function() {
$('div').css("height","200px");
$('div').css("width","200px");
$('div').css("border-radius","10px");
});
Now the error is--
Oops, try again. Make sure to use the .height() function in your code.


#8

@adishri22

$("div").height("200px");
$("div").width("200px");
$("div").css("border-radius","10px");


#9

I have tried that also its saying---

Oops, try again.
Did you give your <div> a height of 200px?

#10

Please paste in your updated code


#11

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


#12

Codecademy's SCT checker is looking for .width() for width styling, .height() for height and you can use .css() for border-radius as Leon showed you here


#13

thank..I troubled you guys a lot...thanks again for your effort