You need to sign in to do that
Don't have an account?
Gaurav_Mishra44553
why alignment is not working for "Account Name " field using html table in vf page
<apex:page controller="BasicForm"> <style type="text/css"> td{ padding:0px 15px 15px 15px; } </style> <apex:form > <table> <tr> <td><apex:outputLabel value="AccountNumber" for="theCheckbox2" style="font-weight:bold"/><apex:inputfield value="{!act.Name}" id="theCheckbox2" /></td> <td><apex:outputLabel value="Phone" for="theCheckbox3"/><apex:inputfield value="{!act.phone}" id="theCheckbox3" /></td> <td><apex:outputLabel value="Phone" for="theCheckbox1"/><apex:inputfield value="{!act.phone}" id="theCheckbox1" /></td> <td><apex:outputLabel value="AccountNumber" for="theCheckbox4" style="font-weight:bold"/><apex:inputfield value="{!act.AccountNumber}" id="theCheckbox4" /></td> </tr> </table> </apex:form> </apex:page>
If the purpose of Table is alignment, would suggest using <apex:panelgrid>
Link: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_panelGrid.htm
Try using pageblock section.
Thanks
Brahma
Try this one: Regards,