Another Salesforce blog!!!

Salesforce, Apex

define the width on apex:pageBlockTable columns


columnsWidth=”60%,20%,10%,10%”

<apex:page>
    <apex:pageBlock>
        <apex:pageBlockTable value="{! null }" var="r" columnsWidth="60%,20%,10%,10%">
            <apex:column headerValue="Name1">
            </apex:column>
            <apex:column headerValue="Name2">
            </apex:column>
            <apex:column headerValue="Name3"> 
            </apex:column>
            <apex:column headerValue="Name4"> 
            </apex:column>
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>

Leave a Reply

Your email address will not be published. Required fields are marked *

*