8/14 Changing Your Style?


$(document).ready(function() {
$('div').css( {

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


jQuery has methods width() and height()
with which you cant get & set Attribute-Values....

For all the other CSS-Attribute's you will have to use the css() Method



10 posts were split to a new topic: 8/14 Changing Your Style


Hi cssmaster90864,

You need to use the css method.

Try this:

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

Height and width do not need the css method. You can edit them directly, however, back-ground or radius border they need the css method in order to edit them.