You need to sign in to do that
Don't have an account?
Kakasaheb EK
How to align commandbutton to center.??
Hi All,
I am unable to align a save button to center ; I tried using these option
1.used div block with css.
2.location=bottom using apex.
3.tryied using css as well
Code :-
<apex:page standardController="Account">
<apex:form>
<apex:pageBlock>
<apex:pageblocksection columns="1">
<apex:commandbutton id="btnCenter" value="Save" Action="{!save}" />
</apex:pageblocksection>
</apex:pageBlock>
</apex:form>
</apex:page>
I want button align center only in apex:pageblocksection
Please adivise,
Kakasaheb.
I am unable to align a save button to center ; I tried using these option
1.used div block with css.
2.location=bottom using apex.
3.tryied using css as well
Code :-
<apex:page standardController="Account">
<apex:form>
<apex:pageBlock>
<apex:pageblocksection columns="1">
<apex:commandbutton id="btnCenter" value="Save" Action="{!save}" />
</apex:pageblocksection>
</apex:pageBlock>
</apex:form>
</apex:page>
I want button align center only in apex:pageblocksection
Please adivise,
Kakasaheb.
please use below code, using div tag instead of using pageblocksection for commandbutton, result:
please let me know if it helps you
Please find the below modified code:
Here I considered:
(1) Didn't use HTML code.
(2) Alignment.
(3) Tested the solution in my DE environment and looks good.
Also check the output:
Please do let me know if it helps you.
Regards,
Mahesh
Please try the below sample code.
Hope this helps you!
Best Regards,
Jyothsna