Click to See Complete Forum and Search --> : Image Positioning
Smilin' Jack
11-08-2003, 12:47 PM
How can I get an image to set exactly where I wan't it?
At: www.equipmentpolice.com/vulcan.html, I am trying to shift the falshing Email image at the bottom shifted somewaht to the right.
Thanks!!!!
Jack
KeithMcL
11-08-2003, 01:01 PM
Surround the image tag with:
<p align="right"><img src=...></p>
Smilin' Jack
11-08-2003, 10:12 PM
Thanks KeithMc!
That works for Left, Right & Center.
How do I get it exactly where I want it?
Dublin; Home of Powers!
Jack
starrwriter
11-09-2003, 01:06 AM
Originally posted by Smilin' Jack
Thanks KeithMc!
That works for Left, Right & Center.
How do I get it exactly where I want it?
Center the image, then add spaces ( ) until you move it to the right where you want it to be.
Paul Jr
11-09-2003, 01:45 AM
Or...
<img style="position:absolute;top:300px;left:200px;" src="imgurl" />
That would place the image 300 pixels down from the top of the page, and 200 pixels over from the left side. Just replace the 200 and 300 with your own values.
mgdpublic
11-10-2003, 07:03 PM
Originally posted by Paul Jr
Or...
<img style="position:absolute;top:300px;left:200px;" src="imgurl" />
That would place the image 300 pixels down from the top of the page, and 200 pixels over from the left side. Just replace the 200 and 300 with your own values.
what's the difference between top and vspace?
Paul Jr
11-10-2003, 07:40 PM
I'm not sure I follow. Do you mean why use "top" and not "vspace"?
mgdpublic
11-11-2003, 11:40 AM
Originally posted by Paul Jr
I'm not sure I follow. Do you mean why use "top" and not "vspace"?
I think I just figured this out - Vspace actually increases the space that the img takes up on the page right?
DaveSW
11-12-2003, 02:32 AM
That's right. Note that position:absolute; takes the image out of the flow of the document though - so you'll need to be careful there's no text going under it.
Something like:
<img alt="300W (33K)" src="300W.jpg" height="388" width="266" style="position: relative; left: 200px;" />
will simply move the picture 200pixels from the left margin, so that may be better, depending on your design, and what you're doing with it!