[SalesForce] Rerender inputfield using outputPanel, but display in one line

I am trying to rerender an inputField; but, since it has a rendered attribute, it cannot be rerendered directly. I have tried putting it in a pageblocksectionitem, but that does not work. I have put it in an outputPanel, but it then puts the label above the field, not next to it inline as the other inputFields appear on my page. I want it to appear just like the other inputFields. Can anyone help. Here is the code:

<apex:outputPanel id="endDate">
    <apex:outputLabel value="End Date" 
                             rendered="{!renderEndDate}" /> 
    <apex:inputField id="endDateField"
                         value="{!newMember.End_Date__c}" 
                         required="true" 
                         rendered="{!renderEndDate}" />
</apex:outputPanel>

Thanks in advance.

Best Answer

If you place your label and field inside of a then it will display like a normal label and field with Salesforce styling

<apex:pageBlock >
   <apex:pageBlockSection >
   <apex:pageBlockSectionItem >


    <apex:outputLabel value="End Date" 
                             rendered="{!ShowEndDate}"/> 
    <apex:inputField id="endDateField"
                         value="{!myCon.Birthdate}" 
                         required="true" 
                         rendered="{!ShowEndDate}"/> 

</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>