Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-08-2007, 08:49 PM   PM User | #1
Apples
New to the CF scene

 
Join Date: Dec 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Apples is an unknown quantity at this point
Question Input field background picture?

Is it possible to apply a background picture to an input field? If so, could you post example code on how to work that?
Apples is offline   Reply With Quote
Old 12-08-2007, 09:33 PM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,469
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
<input style="background-image:logo.gif" value="text here" size="29" type="text" />
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Old 12-09-2007, 08:15 AM   PM User | #3
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,044
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Something like this:-

<style type="text/css">
<!--
INPUT { background-color: teal}
TEXTAREA { background-image: url(image.gif)}
.special { background-color: red; }

-->
</style>


<form name ="myform">
Your Name:
<INPUT type="text">
Your Message
<TEXTAREA cols="20" rows="10"></TEXTAREA>
<INPUT class="special" type="submit">
</form>

Last edited by Philip M; 12-09-2007 at 08:25 AM.. Reason: Typo
Philip M is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:59 AM.


Advertisement
Log in to turn off these ads.