You need to sign in to do that
Don't have an account?
Angela Schloeder
Need a line break
I need to have a line break between Website and Description, but this isn't working as expected.
<apex:outputField value="{!Account.Website}" />
</apex:pageBlockSection>
<apex:pageBlockSection columns="1">
<apex:outputField value="{!Account.Description}" />
<apex:outputField value="{!Account.Website}" />
</apex:pageBlockSection>
<apex:pageBlockSection columns="1">
<apex:outputField value="{!Account.Description}" />
It shows the various ways that you can use page blocks, page block sections, and other Visualforce elements.
I'd also recommend playing with the columns attribute to see if you can get the page block laid out with how you're desiring. For instance, you have a mix of single column sections and sections with no column attribute (which defaults to 2 actually), so it probably looks a bit funky.
All Answers
<apex:pageBlockSection columns="1" title="Account Details" collapsible="false">
<apex:outputField value="{!Account.Name}" />
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:outputField value="{!Account.AnnualRevenue}" />
<apex:outputField value="{!Account.NumberOfEmployees}" />
<apex:outputField value="{!Account.Website}" />
</apex:pageBlockSection>
<apex:pageBlockSection columns="1">
<apex:outputField value="{!Account.Description}" />
</apex:pageBlockSection>
It shows the various ways that you can use page blocks, page block sections, and other Visualforce elements.
I'd also recommend playing with the columns attribute to see if you can get the page block laid out with how you're desiring. For instance, you have a mix of single column sections and sections with no column attribute (which defaults to 2 actually), so it probably looks a bit funky.