You need to sign in to do that
Don't have an account?
Chris110
How to make the content centered outputLabel
<apex:outputLabel style=""> <apex:commandButton action="{!add}" value="add"/> <apex:commandButton value="Search" action="{!Searchs}" onclick="return SearchClick()"/> </apex:outputLabel>
use css styles like this
<table width="100%"> <tr> <td align="center"> <apex:commandButton action="{!add}" value="add"/> <apex:commandButton value="Search" action="{!Searchs}" onclick="return SearchClick()"/> </td> </tr> </table>
thanks for your help!
>>I know the "pageBlockButtons",it will be Displays two buttons.
No you have an attribute called location try with this attribute.Put location is top or bottom.
-Suresh
All Answers
Hi
try this out
You can put your code in <div> tag for better look and feel :
<div style="text-align:center">
// put your code here.
</div>
Hope this helps.
Why do you try with outputLabel?I think better to put command buttons whithin output panel or apex:pageBlockButtons.
or
-Suresh
Thanks for your help!
But it's not work!
Use pageBlockButtons,I know this way.
But I just want to let the button once,pageBlockButtons will appear button twice.
You have tried "text-align: center" .
Why dose it not work in IE, Firefox, Google Chrome in my computer.
I know the "pageBlockButtons",it will be Displays two buttons.
Do you have try
I can not understand so many people are used it.
But it can not work in iE ,firefox ,Google Chrome in my computer.
>>I know the "pageBlockButtons",it will be Displays two buttons.
No you have an attribute called location try with this attribute.Put location is top or bottom.
-Suresh
It is the effect I want.
Thanks