Changing text color in code form...

I have been a bit stuck on a simple formatting procedure. I have a bit of code that needs to change color according to the result.

$w(’ #text1 ').html = <span style="color: #FF0000"> ${$w(" [#text1](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23text1) ").text} </span>;

Can this be written in such a way as to preserve the formatting that exists already through the editor and JUST change the color of the text? The issue I am having is that the adjustment alters the alignment and size as well. Any assistance appreciated.

Hi Stephen,

I suggest you to see the format of that text - like font size is 40px - and add it to the style you wrote.

Hope this helps!
Best,

Mustafa