831 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
tigerlabs says

Hey guys,

Is there a way to put a gradient on input text? It only has to work with firefox.

Example: http://twitpic.com/2a7jp8/full

Thanks!

444 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
TahaH-Studio says
831 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
tigerlabs says

Aw, didn’t help. I’m looking for a way to apply a gradient to the text in the input itself. :)

1747 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VisualSharing says
Hopefully this will help http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/

I’m not sure this will work on input fields, it requires a span inside.

@tigerthemes: Maybe this: http://labs.dragoninteractive.com/rainbows.php ?

831 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
tigerlabs says

cmt, that’s what I tried first and it didn’t work. I’ve been trying to find a solution for hours, and haven’t found anything. :(

444 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
TahaH-Studio says
Hopefully this will help http://www.webdesignerwall.com/tutorials/css-gradient-text-effect/

I’m not sure this will work on input fields, it requires a span inside.

@tigerthemes: Maybe this: http://labs.dragoninteractive.com/rainbows.php ?

Well, I think its possible if u sort your from the way I did below

<form action="">
    <ul>
        <li>
            <span></span>
            <input name="username" type="text" id="username" value="passwork" />
        </li>
        <li>
            <span></span>
            <input type="submit" value="password" />
        </li>
    </ul>
</form>

the only issue that you will face is that the text wont be selectable but i think it could be fixes using .click funtion in jQuery

1182 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
campolar says

You could use jquery to add span tags around the text typed into the input box. And use the span gradient technique. I’m not sure if this is possible tho

382 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
blabus says

Perhaps look into a content-editable DIV as opposed to an input field.

186 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Artillegence says

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by