File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Changing background color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Changing background color" Watch "Changing background color" New topic

Changing background color

naidu rasagna

Joined: Apr 04, 2006
Posts: 15
I am applying styles for a string that is displayed useing DIV tag.Now a would like to change the background color for the specific text.Is it possible.

Name : XXXXX DOB:00-00-0000 ..........
Using CSS i am applying blue as background.Now I would like to change the background of name only to white.Is it possible with out using table???

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
CSS with a span

Consider Paul's rocket mass heater.
subject: Changing background color
Similar Threads
Override the gray text generated from disabled="true"
icefaces menubar css
Look and Feel of Java Ranch
Overriding CSS styles using JS
How to identify Auth method NTLMv1 or NTLMv2