Login | Register | FAQ
Anonymous

Style inpute value

+ Post a reply

2 posts Page 1 of 1


Style inpute value

by PF2G » Tue Aug 07, 2012 11:06 am

Hi,

i have this input text:
Code: Select all
<input class="input" name="username" type="text" value="User ID" onfocus="if (this.value=='User ID') this.value='';" onblur="if (this.value=='') this.value='User ID';"/><img class="img" src="image_user_ID.png">


What i want is style the value with color #666666 but when i start writing something the color goes to #000000.

Can someone help me?
User avatar

PF2G

  • Posts: 3
  • Joined: Fri May 18, 2012 11:15 am

Re: Style inpute value

by XainPro » Thu Aug 09, 2012 8:37 am

USE this CSS
Code: Select all
input  {color:#666666; }
User avatar

XainPro

  • Posts: 3547
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1

?>