View Full Version : Web page image position.


thekeytolife
11-30-2005, 01:31 AM
I'm sure this is a really stupidly simple question......but I have to ask anyway. :violin:

Could someone please tell me how I would place an image on the right hand side of my web page approx 3cm down from the top and approx 2cm in from the right hand side.

The idea is that a visitor would click the image which would then take them to one particular page within the web site.
(I know how to complete this part)

Any help would be greatfully appreciated.

Thanks.
thekeytolife.

ashley_rae02
12-02-2005, 12:47 AM
Im not exactely sure what your talking about. Do you mean take one image and have it a certain measurement below another image?

onigiri
12-02-2005, 03:59 AM
In HTML (no CSS):
<div style="position:absolute; right:2cm; top:3cm;"><img src="yourimage.jpg" /></div>

Or add this to your stylesheet if you use CSS:
#divname {position: absolute;
right: 2cm;
top: 3cm;}

and then in your HTML:
<div id="divname"><img src="yourimage.jpg" /></div>

thekeytolife
12-02-2005, 09:09 PM
Im not exactely sure what your talking about. Do you mean take one image and have it a certain measurement below another image?

That's exacttly what I want to do ashley_rae02.

thekeytolife
12-02-2005, 09:10 PM
In HTML (no CSS):
<div style="position:absolute; right:2cm; top:3cm;"><img src="yourimage.jpg" /></div>

Or add this to your stylesheet if you use CSS:
#divname {position: absolute;
right: 2cm;
top: 3cm;}

and then in your HTML:
<div id="divname"><img src="yourimage.jpg" /></div>

That's great Antibaseball, I can follow your instructions very easily.

Thanks for replying.