Wednesday, April 11, 2012

How to change the column width in Visualforce

<apex:pageblock title="Contacts">
   <apex:pageBlockTable style="width:100%" value="{!contacts}" var="contact">
      <apex:column style="width:250px" value="{!contact.id}"/>
      <apex:column style="width:250px" value="{!contact.Name}"/>
   </apex:pageBlockTable>
 </apex:pageBlock>

1 comment:

  1. but this doesn't worked for me. I used exactly the same way but the change is not reflecting .Please suggest

    ReplyDelete