Change <s:textfield name="catbean.categorycode" label="Category Code " size="15" /> label color in struts2

3.1k Views Asked by At

I am new to struts. How to change the label color for textfield?

Ex:

I want to change the color of 'Category Code'.I tried cssstyle="color: #ffffff" . But this changed the color only for text entering in textbox, not for the label .

1

There are 1 best solutions below

0
MohanaRao SV On BEST ANSWER
<s:label value="Username" cssStyle="color: #ffffff;"/>
<s:textfield name="username" required="true" cssStyle="color:red"/>