File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the color of a String variable

 
Keshini Weerasuriya
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI..
I want to know how i can change the color of a String variable, so that it looks like the say sort of color and font as in the html pages..

Code i tried is as follows..

<br><strong><font color="#FFFFFF" size="5" face="Georgia, Times New Roman, Times, serif">Welcome</font></strong>
<%= name%>

I want the variable name also to get printed in font color="#FFFFFF" size="5" face="Georgia, Times New Roman, Times, serif".. Is this possible?

Tnx in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple HTML and CSS just like anything else. Moved to the HTML forum.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, put the variable in the font tag body, next to "Welcome".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic