title: CSS Change textbox font color
body: <p>I've searched and searched but can't quite get this right. I have a text box on my site and in my CSS/HTML I defined it a class much like anything else and gave it a background image no problem. I decided I needed to change the font color but no matter what I do, it just doesn't work.</p>
  
  <p>My text box CSS is:</p>
  
  <pre><code>.tb1 {
      background-color : #505050;
      background-image: url(images/mb_btn2.jpg);
      color: 0090ff;
      border-style: none;
      onfocus="this.value=''
  }
  </code></pre>
  
  <p>...this doesnt seem to quite work. </p>
  
  <p>I read someone else's response to a similar question that stated using </p>
  
  <pre><code>onfocus="this.value=''
  </code></pre>
  
  <p>which didn't do anything, I then tried, a placeholder:</p>
  
  <pre><code>&lt;input name="username" type="text" class="tb1" maxlength="24" placeholder="Username"/&gt;
  </code></pre>
  
  <p>and this sort of worked. It put a blue "Username" in the textbox. but I then have to erase it to begin typing, AND when you type it still comes out black and not in the defined color.</p>
  
  <p>This is the form HTML:</p>
  
  <pre><code>&lt;div id="login" class="login"&gt;&lt;center&gt;
  &lt;form action="login.php" method="post"&gt;
  Username:&lt;br&gt;&lt;input name="username" type="text" class="tb1" placeholder="Username"&lt;br/&gt;
  Password:&lt;br&gt;&lt;input class ="tb1" type="password" name="password" placeholder="Password"/&gt;&lt;br /&gt;
  &lt;input class="tb1" type="submit" name="login" value="Login"/&gt;
  &lt;/form&gt;&lt;/center&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>So what would work to change the color of my textbox? and/or clear it out when you click on it so "Username" or "Password" is cleared and you can enter your information without having to erase it yourself prior to input?...oh and the submit button too </p>
  
  <ul>
  <li>Thanks</li>
  </ul>