• Post Reply Bookmark Topic Watch Topic
  • New Topic

CSS View on a NON HTML tag

 
Linda Janes
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I have defined an extra tag <mytag> in the DTD. Hence when this document is shown in a JTextPane it doesn't show the ugly mytag markers.
However when I try an apply css to the tag it remains unchaged.
cs.addRule("mytag { Color : blue; }");
htmlEditorKit.setStyleSheet(cs);
Any ideas ?

------------------
Linda Janes
-x-
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!