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
Suraj DemgundeSuraj Demgunde 

i want usename below user information and pass word infront of usrename and login button infront in same line how it is possible ?

User-added image
<apex:page standardController="User" >
<apex:form >

 <div align="center">
<apex:image url="https://c.ap4.visual.force.com/resource/1548067870000/LoginImage" styleClass="imageStyle" height="100" width="100"/>
</div>

<apex:pageBlock title="User Information"> 

<apex:pageBlockSection columns="3">

<div align="left" draggable="false" >
      
       

<apex:inputField value="{!User.Username}" />
<apex:inputField value="{!User.Password__c}" required="true"/>
</div>
</apex:pageBlockSection>
<div align="right:top" columns="2" >
<apex:commandButton value="Login" action="{!save}"/>
</div>

</apex:pageBlock>

</apex:form>
  
</apex:page>
Dinesh GopalakrishnanDinesh Gopalakrishnan
Hi Suraj,

Please try the below Markup.

VF Markup:
<apex:page standardController="User" >
<apex:form >
<style>
.bPageBlock .detailList .labelCol{
    width:0px!important;
}
</style>
 <div align="center">
     <apex:image url="https://c.ap4.visual.force.com/resource/1548067870000/LoginImage" styleClass="imageStyle" height="100"          width="100"/>
</div>

<apex:pageBlock title="User Information"> 
      <apex:pageBlockSection columns="6">
                    <apex:inputField value="{!User.Username}" />
                    <apex:inputField value="{!User.Password__c}" required="true"/>

                    <apex:commandButton value="Login" action="{!save}"/>
      </apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

Thanks,
Dinesh