Next: Previous: Size of a Logo Image Contents: Contents |
Question:
How can I achieve colored background for some words?
Answer:
Define the following macros:
+ONCOLOR:\EMBED{lang=HTML}<span style="background-color:__c__">__body__</span>\END_EMBED +ONBLUE:\ONCOLOR{c=blue}<__body__> |
Then you can use them like: The next words appear on a red background: \ONCOLOR{c=red}<black on red>
The result is: black on red
\ONBLUE<\F{color=white}<white on blue>> yields: white on blue
Discussion:
HTML does not directly support background colors for single words. Therefore we use style sheet elements which are embeded into special tags.
Next: Previous: Size of a Logo Image Contents: Contents |