I'm trying to display an image on top of a command button so just the image is visible.
Following the users guide, I have the following button definition in my page.
<p:commandButton style="top: 300px; left: 530px; position: absolute;" icon="loginBtn" action="#{sessionBean1.processLogin}" />
In my css file I have:
Code: Select all
.loginBtn {
background-image: url('../Images/bone.gif') !important;
}
Code: Select all
body {
background-image: url('../Images/bone.gif');
}
What am I doing wrong?
Thanks