It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

How to make this image work

How to make this image work

Postby jberry on Mon Mar 16, 2009 2:25 pm

I have an image that is basically a contact box. I would like people to be able to enter into the image boxes like a contact box. Is this possible. Here is the image just wondering how to do it.

Image
jberry
100+ Club
 
Posts: 144
Joined: Mon Mar 19, 2007 4:40 pm
Location: Atlantic City, NJ

Re: How to make this image work

Postby igjoe on Mon Mar 16, 2009 3:03 pm

I don't know much about how you can do this, but I do know that it isn't easy... also it is really hard to get it to look the same on different browsers. Your best bet is to somehow create it in flash. best of luck!
User avatar
igjoe
100+ Club
 
Posts: 124
Joined: Tue Jan 06, 2009 4:14 pm
Location: Minneapolis, MN

Re: How to make this image work

Postby Johnathan on Mon Mar 16, 2009 5:53 pm

It's actually not that hard. First cut the text box image out and save it as it's own image then in your html add a class to your text input
Code: Select all
<input type="text" class="text_field" name="firstname"/>

Then in your CSS do
Code: Select all
.text_field {
      background-image:url("images/form_bg.gif");
      }

Set a height and width in the CSS as well and add what ever padding you want.
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Re: How to make this image work

Postby igjoe on Mon Mar 16, 2009 8:36 pm

Thanks Johnathan! I learned something as well!
User avatar
igjoe
100+ Club
 
Posts: 124
Joined: Tue Jan 06, 2009 4:14 pm
Location: Minneapolis, MN

Re: How to make this image work

Postby Johnathan on Mon Mar 16, 2009 10:18 pm

You're welcome, glad it helped.
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Re: How to make this image work

Postby jberry on Tue Mar 17, 2009 12:31 am

I think that will work thanks
jberry
100+ Club
 
Posts: 144
Joined: Mon Mar 19, 2007 4:40 pm
Location: Atlantic City, NJ


Who is online

Users browsing this forum: No registered users and 7 guests