function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shiva RajendranShiva Rajendran 

How to align login and username to a inputfield on a Vf page

i have a custom login page . How can i align to look like salesforce login ?
<apex:page controller="custLogin_CC" showHeader="false" sidebar="false"> 
    
    <apex:form >
    <apex:pageblock >
        <apex:pageBlockSection >
               username : <apex:inputText value="{!username}"/>
              </apex:pageBlockSection>
        <apex:pageBlockSection > 
        <br/>
            password : <apex:inputSecret value="{!password}"> </apex:inputSecret>
        
       </apex:pageBlockSection> 
       
       
            
        
        <apex:commandButton action="{!login}" value="login" style="float:centre" />
      </apex:pageblock>  
    </apex:form>
</apex:page>
User-added image
What should i do to display label and inputfield together in salesforce?
Thanks and Regards,
Shiva RV
 
LBKLBK
Have you tried apex:pageBlockSectionItem under apex:pageBlockSection?