+ 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="this.style.color='black';"/>