I want to design my own custom looking login control, that will apear on the right of my html page. I am new to this and having difficult time understanding how can i embedd the login control code (form code) inside that image ?
My guess is to use position:relative and then adjust the width etc of the login form code so that it appears inside the image. But what is the practice of web designers if they are given this task ?
You are probably better off creating your form first, then applying the image to it as a background image. E.g.
form {background: url(myimage.gif);}
That’s a very basic example, with a lot of options available. Trying to place a form over an image with positioning etc. is asking for trouble, and pointless if the image is just for decoration. A decorative image shouldn’t be in the HTML, but supplied via CSS.
Feel free to provide a link or some code for us to help with.
That image is no use, because it includes a picture of the form. The form needs to be done with HTML, not with Photoshop, so remove the form bits from the image. Create a normal form in HTML, style it as you wish, then place just the paper image behind it.