You need to sign in to do that
Don't have an account?
Visualforce column width
Hi there,
is it posssible to change the column width ?
<apex:page controller="LeadPageControllerKontaktiert" tabStyle="Lead">
<apex:pageBlock title="Meine Leads">
<apex:pageBlockSection title="20 - kontaktiert">
<apex:pageBlockTable value="{!leads}" var="l">
<apex:column >
<apex:facet name="header">Name</apex:facet>
<apex:outputLink value="/{!l.Id}" target="_blank">
<apex:outputField value="{!l.company}"/>
</apex:outputLink>
</apex:column>
<apex:column value="{!l.name}" />
<apex:column value="{!l.company}" />
<apex:column value="{!l.Status}" />
<apex:column value="{!l.Owner.name}" />
<apex:column value="{!l.Lead_Score__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
is it posssible to change the column width ?
<apex:page controller="LeadPageControllerKontaktiert" tabStyle="Lead">
<apex:pageBlock title="Meine Leads">
<apex:pageBlockSection title="20 - kontaktiert">
<apex:pageBlockTable value="{!leads}" var="l">
<apex:column >
<apex:facet name="header">Name</apex:facet>
<apex:outputLink value="/{!l.Id}" target="_blank">
<apex:outputField value="{!l.company}"/>
</apex:outputLink>
</apex:column>
<apex:column value="{!l.name}" />
<apex:column value="{!l.company}" />
<apex:column value="{!l.Status}" />
<apex:column value="{!l.Owner.name}" />
<apex:column value="{!l.Lead_Score__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
For example,
<apex:column value="{!l.name}" width="150px"/>
The width of the column in pixels (px) or percentage (%). If not specified, this value defaults to 100 pixels.
All Answers
For example,
<apex:column value="{!l.name}" width="150px"/>
The width of the column in pixels (px) or percentage (%). If not specified, this value defaults to 100 pixels.