Get your own customer support community
 

How to change style properties for CSS?

I am using the following script segment in an HTML/JS widget:
var a=document.createElement("a");
a.innerHTML=feed.value.items[t].title;
a.style.fontSize=tagSize;
a.style.color=tagColor;
a.href=feed.value.items[t].link;
a.target="_blank";
$.theFeed.appendChild(a);

While the "a" link gets created with appropriate href and target, the two lines to change the fontSize and color do not seem to take effect. I checked tagSize and tagColor and they are both good. I also tried swapping specific values in and it still didn't work.

Is there some other way to access the style settings? Thanks, Ian
 
indifferent I’m confused
Inappropriate?
1 person has this question

User_default_medium