Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

s:textfield

 
chris locke
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gurus,

This may seem silly but I can't seem to find this anywhere. I have a struts form which calls



This creates a text field with label "Login". However, I don't see any way to change the color of the Login text. The cssClass attribute only seems to affect the text that is entered within the box, not the label.

Thoughts? Thanks in advance..
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Override the default CSS (it's the .label class)?
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris, welcome to javaranch.

Chris please check your private messages for some administrative matter...
 
chris locke
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I appreciate the welcome!

I wasn't sure what you were referring to when you mentioned overriding the default css but after I saw the source code and class "label" was being generated I could modify it from there. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic