Skip to content

Commit e9e0f97

Browse files
author
Connor Montgomery
committed
when setting with $.fn.css, properties are camelCased.
1 parent 48277f3 commit e9e0f97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/jquery-basics/css-styling-dimensions.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ contains multiple properties. This is a common way to pass multiple arguments
3131
to a function, and many jQuery setter methods accept objects to set mulitple
3232
values at once.
3333

34+
**Note:** while we do not recommend using `$.fn.css` as a setter in production-ready code (see below), when passing in an object to set CSS, CSS properties will be camelCased, instead of using a hypen.
35+
3436
### Using CSS Classes for Styling
3537

3638
As a getter, the `$.fn.css` method is valuable; however, it should generally be

0 commit comments

Comments
 (0)