Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Javascript Element.style.<a_new_css_style> = 'value' + 'units" +';';

  • No replies
  • 1 has this problem
  • 5 views
more options

In the case I am either creating a new CSS style rule on an HTML element that hasn't even had the rule before, or altering the value where the rule and value have existed previously, may I use the Javascript Element.style.<a_new_css_style> = 'value' + 'units" +';'; notation, even where the style is being appended for the first time? Does this tend to hold in browsers like Firefox 5, IE9,Chrome 11,SeaMonkey 2,Apple Safari?

In the case I am either creating a new CSS style rule on an HTML element that hasn't even had the rule before, or altering the value where the rule and value have existed previously, may I use the '''Javascript Element.style.<a_new_css_style> = 'value' + 'units" +';';''' notation, even where the style is being appended for the first time? Does this tend to hold in browsers like Firefox 5, IE9,Chrome 11,SeaMonkey 2,Apple Safari?