Hi ,>
We can set image on button background see the code below work fine !
We can set image on button background see the code below work fine !
<apex:commandButton id="cbtneditlogin" action="{!editprofile}" style="bgcolor:white;background-image:url({!URLFOR($Resource.preferimages,'images/login.jpg')});height:35px;width:155px;border-width:0px;background-repeat:no-repeat;cursor:pointer;"/>
Using an image as a command button in Visualforce offers a visually appealing alternative to standard buttons. How Play Games This method combines aesthetics with functionality, providing a more engaging user experience. It's a valuable technique for customizing UIs and enhancing interactivity in Salesforce applications.
ReplyDelete