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

Text color in input Text

Hello friends,


In my apex:input text field the text is comming align to the border. I want to give some space between the input text field border and text.I have used padding and left margin for this.And beside to this i am giving some default input in the input text which should be grey and on click it should turn black.How can i do the same?????


Best Answer chosen by Admin (Salesforce Developers) 


try the followed styles


<apex:inputText value="Enter Text" style="padding: 10px; color: grey;" onclick="'black';"/>