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
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: 15385
CSS with a span

I agree. Here's the link:
subject: Changing background color
It's not a secret anymore!