Home Forums General XMetaL Discussion Highlighting and coloring text Reply To: Highlighting and coloring text

AHM

Reply to: Highlighting and coloring text

For example, if I have the following XML fragment:

[code]A paragraph with colored words.Another paragraph with words in a different color.[/code]

I need the font to be exactly the color defined in the color attribute.
I think what you mean is that I could define something like:

[code]colorFont {
  color: #003FC8;
}
colorFont {
  color: #7A2700;
}[/code]

The problem is that the users are free to select any of the 16.7 million colors from the Color Chooser.
So what I would like to be able to do is something more dynamic like:

[code]colorFont {
  color: attr(color);
}[/code]

Unfortunately, this does not work in CSS, but maybe there is another way of doing it.

Thanks,
Andreas

Reply

Products
Downloads
Support