L
listerofsmeg01
Hi,
When specifying say, background color in CSS, I use:
background-color:red;
However, after much head scratching when trying to set it dynamically
via the DOM, I found I need to spell it
node.style.backgroundColor = "red";
Why the difference in attribute spelling? I presume I am missing
something fundamental?
Many thanks,
Lister
When specifying say, background color in CSS, I use:
background-color:red;
However, after much head scratching when trying to set it dynamically
via the DOM, I found I need to spell it
node.style.backgroundColor = "red";
Why the difference in attribute spelling? I presume I am missing
something fundamental?
Many thanks,
Lister