Welcome to WebmasterWorld Guest from 54.163.40.152

Forum Moderators: incrediBILL

Message Too Old, No Replies

Moving Images in HTML

     

Tobin83

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

5+ Year Member




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

niels

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

10+ Year Member



Stupid answer mabye, but you could add 3px @ the top of the image. hehe

Leosghost

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

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



what you are looking for is called the "absolute position"

coho75

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

10+ Year Member



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" />

Tobin83

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

5+ Year Member



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

coho75

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

10+ Year Member



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.

Tobin83

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

5+ Year Member



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>

coho75

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

10+ Year Member



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

Tobin83

4:37 am on Jan 26, 2006 (gmt 0)

5+ Year Member



thank you for your help.

reddmark

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

10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month