I need a single column of fields centered in a pageBlockSection. I easily found the "columns" attribute and set the value to "1". When I did, it still aligns the fields to the left with enough room for a second column to fit on the right. How do I achieve a single centered column of fields?
I've tried wrapping the contents of the pageBlockSection in a div using both the alignalign="center" and style="text-align:center". Neither worked.
<apex:page standardcontroller="Account" id="pg"> <apex:pageBlock > <apex:pageBlockSection columns="1"> <apex:inputText label="My Field" /> </apex:pageBlockSection> </apex:pageBlock> </apex:form>
Output of example page: Thanks in advance!