PDA

View Full Version : text fields over images


hapland_stick
07-25-2008, 02:25 AM
does any one know how to put a text field over a image and position it

i use dream weaver

rangana
07-25-2008, 02:51 AM
Try to place your text field in an element, and set that element's background to the image you wish to see. Something along these lines:

<div style="background:url('background.jpg');height:100px;width:100px;">
<textarea></textarea>
<input type="text">
</div>


Hope that makes sense.

hapland_stick
07-25-2008, 02:55 AM
i had something before but it was like
%right:###
%left:###
%up:###
or somethiing like that
and i need to like set the text field to a certain position

rangana
07-25-2008, 03:07 AM
I think you mean absolute/relatively positioned (http://www.w3schools.com/Css/pr_class_position.asp) elements.

hapland_stick
07-25-2008, 04:06 AM
sory im kinda retarded can u tell me how it works if you know

rangana
07-25-2008, 05:02 AM
You could do it this way:

<div style="background:url('http://mysite.orange.co.uk/azygous/images/eyes.gif');height:200px;width:900px;position:relative;">
<p style="position:absolute;top:45%;left:45%;">
<textarea></textarea>
<br>
<input type="text">
</p>
</div>


Or this:

<img src="http://mysite.orange.co.uk/azygous/images/eyes.gif">>
<textarea style="position:absolute;top:50px;left:100px;"></textarea>
<br>
<input type="text" style="position:absolute;top:150px;left:400px;">


Hope it keeps you going.

hapland_stick
07-25-2008, 05:15 AM
thanks
i used some thing a little diffrent but i got it