homepage Welcome to WebmasterWorld Guest from 54.161.214.221
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Moving Images in HTML
Tobin83




msg:592347
 4:58 pm on Jan 24, 2006 (gmt 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

 

niels




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

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

Leosghost




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

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

coho75




msg:592350
 5:05 pm on Jan 24, 2006 (gmt 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" />

Tobin83




msg:592351
 5:18 pm on Jan 24, 2006 (gmt 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

coho75




msg:592352
 5:25 pm on Jan 24, 2006 (gmt 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.

Tobin83




msg:592353
 8:25 pm on Jan 24, 2006 (gmt 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>

coho75




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

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

Tobin83




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

thank you for your help.

reddmark




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved