+ Start a Discussion
Angela SchloederAngela 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}" />
Best Answer chosen by Angela Schloeder
James LoghryJames Loghry
Have you checked this document out yet? http://limitexception.com/2014/03/30/visualforce-a-visual-reference-guide/

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

James LoghryJames Loghry
Can you post your entire pageblock element?  If it's displaying the two pageBlockSections side by side, then it's likely you need to adjust the number of columns that your pageblock is using.
Angela SchloederAngela Schloeder
</apex:pageBlockSection>
                <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>
Angela SchloederAngela Schloeder
That didn't work
Angela SchloederAngela Schloeder
Got it
James LoghryJames Loghry
Have you checked this document out yet? http://limitexception.com/2014/03/30/visualforce-a-visual-reference-guide/

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.
This was selected as the best answer