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
Sandra WicketSandra Wicket 

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>
Best Answer chosen by Sandra Wicket
Arunkumar RArunkumar R
You can set width for columns,

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

Arunkumar RArunkumar R
You can set width for columns,

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.
This was selected as the best answer
Sandra WicketSandra Wicket
Thanks Arunkumar, but it dosent work.  But i really appreciate your help
Sandra WicketSandra Wicket
Ah sry for the mistake, i want to increase the width of the outputlink column. Is it possible to do that ?