How to change CSS of Struts tags?

I have a simple <s:textfield /> field which have required = "true" attribute.

It displays

User Login*:

I want to change the asterisk to red with CSS.

I have tried but it wont changes. The tag code is the following:

<s:textfield id="userNameId" 
           name="userModel.userName"
          label="User Login Id" 
      maxlength="12" 
       required="true" />


Source: jsp

Leave a Reply