I am trying to display text from a database using css and HTML.
While i am satisfied with the layout and overall control given by css, i have great difficulty in doing the "simplest" things. I want to display text which changes color with no interruption to the layout of the line on which it appears - like the Delphi editor - highlighting certain types of text in different colors.
This can be achieved by embedding <FONT COLOR=???> within the text, and that works fine. But I want to broaden the functionality - i want to say <FONT CLASS="FONTCOLOR1">
But i cant get that to work - the class definitions seem ok - others work - but the color never changes.
I received advice on this forum - to use the SPAN tag, using the same class settings. This did not work either.
I would really like to take full advantage of CSS to reduce the repetition in HTML source. If anybody has a practical suggestion i would really appreciate to hear it.
While i am satisfied with the layout and overall control given by css, i have great difficulty in doing the "simplest" things. I want to display text which changes color with no interruption to the layout of the line on which it appears - like the Delphi editor - highlighting certain types of text in different colors.
This can be achieved by embedding <FONT COLOR=???> within the text, and that works fine. But I want to broaden the functionality - i want to say <FONT CLASS="FONTCOLOR1">
But i cant get that to work - the class definitions seem ok - others work - but the color never changes.
I received advice on this forum - to use the SPAN tag, using the same class settings. This did not work either.
I would really like to take full advantage of CSS to reduce the repetition in HTML source. If anybody has a practical suggestion i would really appreciate to hear it.