Border-radius


#1


the border-radius code isn't working i think i got it right..
error: Uncaught ReferenceError: radius is not defined


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


#2

from the exercise:

Because resizing elements is so common, jQuery has specific .height() and .width() function

jQuery also includes a general-purpose .css() function that takes two inputs: the first is the CSS element to alter, and the second is the value to set it to

so if you want to set the border-radius, you got to use .css()


#3

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