Jump to content

[SOLVED] Image over an Input field


Twister1004

Recommended Posts

the guy above was too vague, and indecisive.

 

Add class="bg" to your input:


<input type="text" class="bg" />

 

 

then add this CSS code to your site:


input.bg {

background:url(link to your background image here);

}

 

alternatively, if you don't know CSS, you could put this in your <head>:

<style type="text/css">

input.bg {

background:url(link to your background image here);

}

</style>

 

 

That will put an image in the background of the text field. If you want to actually put an image over a text field, you'll have to do that with how that guy said. Although, I'm 98% sure that's not what you're looking for, because you said add src="". Plus, it's a stupid idea to begin with, because it will keep you from being able to type in the field.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.