Monday, June 20, 2011

Image as a commandbutton on Visualforce Page



Hi ,>
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;"/>

1 comment:

  1. 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