Keep getting div not set when its set


#1


I am stuck at the fopllowing;
Modifying HTML elements: 8. Changing your style


This is the error message I get: Oops, try again. Did you give your

a height of 200px?


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


#2

I just tried your code, as well as variations on quotes and all tests passed. Perhaps try a page refresh and submit again?


#3


this still happens for some reason... refreshed and reset the code but nothing will change.
Also refreshed the page


#4

It could be a browser thing. I'm testing with Firefox. Something else that might work is removing the units. The jQuery height and width methods emulate the height and width HTML attributes, and do not require units (meaning they are optional).

$('div').height('200');

Try that and see if it works.


#5

It is still not working... Maybe I should try a different browser?


#6

Which one are you using, now?


#7

Google Chrome,
I have firefox and internet explorer installed perhaps I will try both


#8

Problem is solved! It was indeed the browser. I guess chrome does not work for the program. I used internet explorer and it worked


#9

Good to know, for future reference. This course will soon be replaced but if anyone runs into this problem we will know what to look for. Thanks for sticking with it.


#10

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