Activity Forums Salesforce® Discussions How can I change the width / height of an apex:inputField on a VisualForce page?

  • Sourabh

    Member
    July 27, 2016 at 2:19 pm

    Hi Tanu,

    <apex:inputfield> tag contains style element in which you can put styling as you needed.

    example: <apex:inputfield value="{!value from controller}" style="height:100px;width:100px">

    Thanks..

  • shariq

    Member
    July 31, 2017 at 6:20 am

    Hi Tanu,

    You can try this :-

    <apex:inputField value="Input Test" style="width: 360px;height: 40px"/>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos