Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

css background color question

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you provide a code sample please? This way we might see where your flaw is
 
Yile Ku
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
.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.
 
Sheriff
Posts: 67528
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does this have to do with Web Services?
 
reply
    Bookmark Topic Watch Topic
  • New Topic