Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by James Snyder on Jul 28, 2009 10:15
open dhtmlx forum
Multiple font colors in one cell

Is it possible to have a single cell's text that has multiple colors?

ie: <red>This text is red</red><blue>this text is blue</blue>

Ok, so that's a bad example but hopefully it will give you an idea of what I mean.

Thanks,
James Snyder
Answer posted by dhxSupport on Jul 29, 2009 02:20
You can store any html inside grid cell:
<cell><![CDATA[<span style="color: red">This text is red</span><span style="color: blue">This text is blue</span>]]></cell>
Answer posted on Aug 11, 2009 08:05
I tried that an also the old <font color = red> and no one worked the font was black in the grid,
there is another metod?
Answer posted by Support on Aug 11, 2009 10:19
Please be sure that you are not using any global css rules on the page, which can override inline html settings.
There is no any restrictions on an html content inside the cell, so any html formatting which you will define must be applied as is, without modification.