Skip to content

Commit 217e621

Browse files
author
Markus Amalthea Magnuson
committed
Fix a couple of typos.
1 parent 5b6aaf6 commit 217e621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

page/using-jquery-core/css-styling-dimensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ $("h1").css({
2121
});
2222
```
2323

24-
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.
24+
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.
2525

2626
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.
2727

28-
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.
28+
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.
2929

3030
## Using CSS Classes for Styling
3131

0 commit comments

Comments
 (0)