function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ritika JRitika J 

commandlink as image

Hi

I want to display some links on extreme right at top of my vf page as images .

 

Can anybody tell me how to display links as any image.

 

thanks

Ritika

kiranmutturukiranmutturu

try like this

 

<apex:commandLink action="{!domy}" type="image/png">
<apex:image value="{!$resource.oppicon}"/>
</apex:commandlink>

Ritika JRitika J

Thanks for the reply plz tell me , how can i  move it to extreme right.

Big VBig V

Try this. upload your image as static resource and name it as myResourceImage and In VF:

 

<apex:page>

<apex:commandlink action="{!youraction}" style="float:right;">

<apex:image id="theImage" value="{!$Resource.myResourceImage}" width="50" height="50"/>

</apex:commandlink>

</apex:page>

 

try this and let me know

 

regards,

Big V

kiranmutturukiranmutturu

simple add style to image as style="float:right;"