Controlling the text displayed in an input box/field?

  • lplplpx3
  • Novice
  • Novice
  • No Avatar
  • Joined: May 30, 2007
  • Posts: 23
  • Status: Offline

Post January 26th, 2011, 5:12 pm

I have a newsletter sign-up form where the field titles display in the actual boxes (see attachment). Can anyone tell me how to control how the text is actually displayed inside the field. For instance, right now text displays in black but I would like it to be grey. I tried an inline style but this did not work unless I didn't use it correctly. Thanks much in advance.

Example code for the email field:
<span>
<input name="email" type="text" value="E-mail" size="12" maxlength="50"/>
</span>
Attachments:
Picture 1.png
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 26th, 2011, 5:12 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post January 28th, 2011, 12:27 pm

HTML Code: [ Select ]
<input type="text" style="color: #999999 !important" />
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • lplplpx3
  • Novice
  • Novice
  • No Avatar
  • Joined: May 30, 2007
  • Posts: 23
  • Status: Offline

Post January 28th, 2011, 5:51 pm

Worked like a charm. Thanks!

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 135 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.