From 217e6210e8132c4b96be1514630fd26fbf9447a1 Mon Sep 17 00:00:00 2001 From: Markus Amalthea Magnuson Date: Sat, 23 Feb 2013 00:18:32 +0100 Subject: [PATCH] Fix a couple of typos. --- page/using-jquery-core/css-styling-dimensions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/page/using-jquery-core/css-styling-dimensions.md b/page/using-jquery-core/css-styling-dimensions.md index 6be6fa90..2901da43 100644 --- a/page/using-jquery-core/css-styling-dimensions.md +++ b/page/using-jquery-core/css-styling-dimensions.md @@ -21,11 +21,11 @@ $("h1").css({ }); ``` -Note the style of the argument on the second line — it is an object that contains multiple properties. This is a common way to pass multiple arguments to a function, and many jQuery setter methods accept objects to set mulitple values at once. +Note the style of the argument on the second line — it is an object that contains multiple properties. This is a common way to pass multiple arguments to a function, and many jQuery setter methods accept objects to set multiple values at once. CSS properties that normally include a hyphen need to be camelCased in JavaScript. For example, the CSS property `font-size` is expressed as `fontSize` when used as a property name in JavaScript. However, this does not apply when passing the name of a CSS property to the `$.fn.css()` method as a string — in that case, either the camelCased or hyphenated form will work. -It's not recommended to use `$.fn.css()` as a setter in production-ready code, but when passing in an object to set CSS, CSS properties will be camelCased instead of using a hypen. +It's not recommended to use `$.fn.css()` as a setter in production-ready code, but when passing in an object to set CSS, CSS properties will be camelCased instead of using a hyphen. ## Using CSS Classes for Styling