This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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

It is sorta covered in the JavaRanch Style Guide.
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