Welcome to WebmasterWorld Guest from 23.22.220.37

Forum Moderators: incrediBILL

Message Too Old, No Replies

Moving Images in HTML

     
4:58 pm on Jan 24, 2006 (gmt 0)

New User

10+ Year Member

joined:Jan 12, 2006
posts:38
votes: 0



I have this image I need to move down like 3 pixels. I need to see what it will take to move it down in HTML only and not using CSS. The image is also a link for the search bar but its not aligned right.

Please help.. its the only thing I need to complete this site.

Thank you,

Scott

5:04 pm on Jan 24, 2006 (gmt 0)

New User

10+ Year Member

joined:Apr 2, 2005
posts:27
votes: 0


Stupid answer mabye, but you could add 3px @ the top of the image. hehe
5:04 pm on Jan 24, 2006 (gmt 0)

Senior Member from FR 

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 15, 2004
posts:6717
votes: 230


what you are looking for is called the "absolute position"
5:05 pm on Jan 24, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Oct 15, 2003
posts:276
votes: 0


Is the image located inside a table? I know that you said no CSS, but it is probably the easiest way to do it. You could simply use some inline CSS. Something like this:

<img src="/location/image.gif" style="margin-top:3px" />

5:18 pm on Jan 24, 2006 (gmt 0)

New User

10+ Year Member

joined:Jan 12, 2006
posts:38
votes: 0


would i put this into my html?

and what would it do if it wasnt in a table?

this is a pretty easy thing for most people, for me this is just making me mad. HAHA

5:25 pm on Jan 24, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Oct 15, 2003
posts:276
votes: 0


You would simply put 'style="margin-top:3px"' into your code for the image. There are many things that can be done if the image isn't in a table. However, it is hard to make a recommendation not knowing how everything is set up. If you could post some of the code, it might be easier to help you out. As someone else has posted, you could also use absolute positioning.
8:25 pm on Jan 24, 2006 (gmt 0)

New User

10+ Year Member

joined:Jan 12, 2006
posts:38
votes: 0


I would put it at the end of the alt tag in the image code? Like if this is my code, where would I put that?

<a href="javascript: submitform()"><img src="images/search.gif" alt="Search" height="19" width="40"></a>

8:32 pm on Jan 24, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Oct 15, 2003
posts:276
votes: 0


<a href="javascript: submitform()"><img src="images/search.gif" alt="Search" height="19" width="40" style="margin-top:3px"></a>
4:37 am on Jan 26, 2006 (gmt 0)

New User

10+ Year Member

joined:Jan 12, 2006
posts:38
votes: 0


thank you for your help.

reddmark

4:17 pm on Jan 29, 2006 (gmt 0)

Inactive Member
Account Expired

 
 


Have you ever considered converting from using tables to layers? It makes developing MUCH easier.