Controlling the text displayed in an input box/field?

  • lplplpx3
  • Novice
  • Novice
  • lplplpx3
  • Posts: 23

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

HTML Code: [ Select ]
<input type="text" style="color: #999999 !important" />
  • lplplpx3
  • Novice
  • Novice
  • lplplpx3
  • Posts: 23

Post 3+ Months Ago

Worked like a charm. Thanks!

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 55 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.