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 css background color question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "css background color question" Watch "css background color question" New topic
Author

css background color question

Yile Ku
Greenhorn

Joined: Jan 27, 2011
Posts: 13
I want to build a Cascading Style Sheet attribute that will fill all of the text box with the background color, not just the text that prints in the text box. Now when I print a string in the text box the background color only goes to the last character of the string. Is there a way to set the Cascading Style Sheet attribute for a box to have the entire background of the box be a certain color?
Thanks,
M
Daniel Doboseru
Ranch Hand

Joined: Sep 26, 2011
Posts: 57
Can you provide a code sample please? This way we might see where your flaw is
Yile Ku
Greenhorn

Joined: Jan 27, 2011
Posts: 13
.profitColor
{
background-color: #c1e950;
background-repeat: repeat repeat;
border-left: 1px solid #c1e950
border-right: 1px solid #c1e950
}

.lossColor
{
background-color: #FF907C;
background-repeat: repeat repeat;
border-left: 1px solid #ff907c
border-right: 1px solid #ff907c
}

.unCertainColor
{
background-color: #F0e68c
}


I want to have a loss cell be all red (even after the description text ends) and a profit cell be all green, etc.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61456
    
  67

What does this have to do with Web Services?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: css background color question