I saw the generated code in the page:<input type="submit name=j_idt15 value= class=c2> I notice than before when i used the image attribute instead of css, i saw this: <input type=image src=/demoapp/resources/images/smiley.jpg name=j_idt14> The code you gave for class .c2 didn't work but at the link you pasted at the end there is an example that works for me in a similar way, but only