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
RDN_LHRRDN_LHR 

Getting fields to span properly on pages

How do I mimic the usual Page Layout section behavior where you can say a section is one column wide and have your field fill the whole column?

 

I've been playing with the number of columns as below, setting it to all sorts of numbers.  Setting columns="1"  shoves the field off to the left and leaves the entire right of the pageBlockSection wastefully blank.

 

<apex:pageBlockSection title="Users" columns="1">

<apex:inputField id="descr" value="{!Case.'Description}"/>

 

What am I missing?

Best Answer chosen by Admin (Salesforce Developers) 
MATTYBMEMATTYBME

Personally I would use:

 

 

<apex:pageBlockSection title="Users"> <apex:inputField id="descr" value="{!Case.Description}" style="width: 700px;"/> </apex:pageBlockSection>

 

 You can modify the width pixels to match up to the other fields above and below