• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

Changing color in java/jsp

Hi Experts,

I am wondering if there is a way to change color of the output of part of my string. for example I have this:

 <option style="font-size: 36px;"
                                  ; value="<%=applicationName + "," + createdDate%>">
                                  <%
                                 out.print(applicationName + "    Created: "                                                            + createdDate.substring(0, 10)
                                                            + "   Last Updated: "
                                                            + lastUpdated.substring(0, 10));
                        %>
                  </option>can I have the the color of "created" to be different than the rest?

thanks,
0
DESEI-SELB
Asked:
DESEI-SELB
1 Solution
 
chaitu chaituCommented:
try this.
out.print(applicationName + "    <font color='red'>Created:</font> "                                                            + createdDate.substring(0, 10)
                                                            + "   Last Updated: "
                                                            + lastUpdated.substring(0, 10));

Open in new window

0
 
Michel PlungjanIT ExpertCommented:
Poor suggestion
Font is a deprecated tag and it does not work inside an option

No you cannot change the colour or the font of a word in a normal dropdown.
You will need to use a styled dropdown instead
0
 
DESEI-SELBAuthor Commented:
didnt try the styled dropdown. thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now