File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Changing the color of a String variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Changing the color of a String variable" Watch "Changing the color of a String variable" New topic
Author

Changing the color of a String variable

Keshini Weerasuriya
Greenhorn

Joined: Jan 08, 2006
Posts: 24
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

Joined: Jan 10, 2002
Posts: 60057
    
  65

Simple HTML and CSS just like anything else. Moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Yes, put the variable in the font tag body, next to "Welcome".


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing the color of a String variable
 
Similar Threads
INCLUDES.DBconnection error
SQL and JSP
How to pass more than 1 parameters into the sevlet???
display problem.
How normal are you?