75 Flashcards

(3 cards)

1
Q

Manipulating CSS Styles (DOM)

A

document.querySelector(‘…’).style.property = ‘…‘

when we are manipulating, we always need to specify a string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

style.background-color OR style.backgroundColor ?

A

style.backgroundColor

camelCase notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

style.width = ‘30’ OR style.width = 30 ?

A

style.width = 30

How well did you know this?
1
Not at all
2
3
4
5
Perfectly