Set Multiple CSS Properties

1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€92.44
List Price:  €129.42
You save:  €36.98
£79.46
List Price:  £111.24
You save:  £31.78
CA$135.74
List Price:  CA$190.05
You save:  CA$54.30
A$153.47
List Price:  A$214.87
You save:  A$61.39
S$134.93
List Price:  S$188.91
You save:  S$53.97
HK$781.94
List Price:  HK$1,094.75
You save:  HK$312.80
CHF 90.03
List Price:  CHF 126.05
You save:  CHF 36.01
NOK kr1,076.14
List Price:  NOK kr1,506.64
You save:  NOK kr430.50
DKK kr689.43
List Price:  DKK kr965.23
You save:  DKK kr275.80
NZ$166.55
List Price:  NZ$233.18
You save:  NZ$66.62
د.إ367.20
List Price:  د.إ514.09
You save:  د.إ146.89
৳10,973.08
List Price:  ৳15,362.76
You save:  ৳4,389.67
₹8,370.82
List Price:  ₹11,719.49
You save:  ₹3,348.66
RM473.70
List Price:  RM663.20
You save:  RM189.50
₦151,855.98
List Price:  ₦212,604.44
You save:  ₦60,748.46
₨27,987.35
List Price:  ₨39,183.41
You save:  ₨11,196.06
฿3,640.48
List Price:  ฿5,096.82
You save:  ฿1,456.34
₺3,198.90
List Price:  ₺4,478.59
You save:  ₺1,279.68
B$497.39
List Price:  B$696.36
You save:  B$198.97
R1,900.12
List Price:  R2,660.25
You save:  R760.12
Лв180.82
List Price:  Лв253.15
You save:  Лв72.33
₩134,557.33
List Price:  ₩188,385.65
You save:  ₩53,828.31
₪362.76
List Price:  ₪507.88
You save:  ₪145.12
₱5,634.91
List Price:  ₱7,889.10
You save:  ₱2,254.19
¥15,160.21
List Price:  ¥21,224.90
You save:  ¥6,064.69
MX$1,681.35
List Price:  MX$2,353.96
You save:  MX$672.61
QR364.80
List Price:  QR510.74
You save:  QR145.93
P1,370.64
List Price:  P1,918.95
You save:  P548.31
KSh13,248.67
List Price:  KSh18,548.67
You save:  KSh5,300
E£4,674.40
List Price:  E£6,544.35
You save:  E£1,869.94
ብር5,710.69
List Price:  ብር7,995.20
You save:  ብር2,284.50
Kz83,254.97
List Price:  Kz116,560.29
You save:  Kz33,305.32
CLP$96,896.30
List Price:  CLP$135,658.70
You save:  CLP$38,762.40
CN¥722.68
List Price:  CN¥1,011.79
You save:  CN¥289.10
RD$5,946.87
List Price:  RD$8,325.85
You save:  RD$2,378.98
DA13,476.96
List Price:  DA18,868.28
You save:  DA5,391.32
FJ$227.20
List Price:  FJ$318.09
You save:  FJ$90.89
Q779.84
List Price:  Q1,091.81
You save:  Q311.97
GY$20,934.37
List Price:  GY$29,308.96
You save:  GY$8,374.58
ISK kr13,727.62
List Price:  ISK kr19,219.22
You save:  ISK kr5,491.60
DH1,003.96
List Price:  DH1,405.59
You save:  DH401.62
L1,773.35
List Price:  L2,482.76
You save:  L709.41
ден5,659.87
List Price:  ден7,924.04
You save:  ден2,264.17
MOP$809.91
List Price:  MOP$1,133.91
You save:  MOP$324
N$1,886.93
List Price:  N$2,641.78
You save:  N$754.84
C$3,699.98
List Price:  C$5,180.13
You save:  C$1,480.14
रु13,299.68
List Price:  रु18,620.08
You save:  रु5,320.40
S/369.49
List Price:  S/517.31
You save:  S/147.81
K379.49
List Price:  K531.31
You save:  K151.81
SAR374.98
List Price:  SAR524.99
You save:  SAR150
ZK2,626.55
List Price:  ZK3,677.28
You save:  ZK1,050.72
L459.66
List Price:  L643.54
You save:  L183.88
Kč2,345.97
List Price:  Kč3,284.45
You save:  Kč938.48
Ft36,711.76
List Price:  Ft51,397.94
You save:  Ft14,686.17
SEK kr1,055.64
List Price:  SEK kr1,477.95
You save:  SEK kr422.30
ARS$85,416.45
List Price:  ARS$119,586.45
You save:  ARS$34,169.99
Bs690.84
List Price:  Bs967.21
You save:  Bs276.36
COP$390,640.66
List Price:  COP$546,912.55
You save:  COP$156,271.89
₡50,556.24
List Price:  ₡70,780.76
You save:  ₡20,224.52
L2,468.82
List Price:  L3,456.46
You save:  L987.63
₲731,352.15
List Price:  ₲1,023,922.27
You save:  ₲292,570.11
$U3,848.94
List Price:  $U5,388.67
You save:  $U1,539.73
zł399.63
List Price:  zł559.50
You save:  zł159.87
Already have an account? Log In

Transcript

Hello, in this jQuery video I'm going to show you how to set multiple CSS properties and the previous video I showed you how to set a single CSS property. Again, the selected the Mara whenever you're doing something like getting this particular element that has been has triggered this event or just something like this doesn't matter at all. And I'll get rid of this to apply or modify multiple properties, or your multiple CSS properties, you just enclose it in curly braces after the regular parentheses. And now, what you do is put you put the property name, like so, for a comma, the property value then afterwards, you put, actually Sorry, I made a mistake. Instead of a comma, you put a colon. When you are modifying the next property, you put commas in the lesson modify one more, the students background Hello, and Conan.

And for this we are going to put what background color to keep it simple. And if you want in the one comma, and you can put the property name, colon, and then the property value, but I was going to keep it simple as to where you can add as many as you want. Then what we're going to do is reload the file, click it. As you can see, it's changed both properties, sort of hard to see the colors on the changes to white. There we go is changed both properties. So that is how you set multiple CSS properties using one selector.

That's it. If you have any questions, feel free to drop me a message and as usual, I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.