Help with image html code?

Here's my html code I have for my image: <IMG id=Image1 style="LEFT: 3px; WIDTH: 1004px; POSITION: absolute; TOP: 16px; HEIGHT: 142px" height=142 alt="" src="help_files/Top%20111.gif" width=1004 align=top border=0> When you view images in a browser and right click you can find that it says Save Picture As. I want this image to be exactly the same but when you right click on it in a browser its a background image. So it will say save background as. Something like if you right click on the greenish background where it says ask, answer and discover on the top of this page. Can someone edit this code for me so it will be a background image? Thanks!

Public Comments

  1. Background images are set in the <Body background="top%20111.gif">
  2. It depends if you want a full page background or a background for a table. FOR TABLE <table border="1" width="100%" background="Image1.jpg"> <tr> <td width="100%"> </td> </tr> </table> Page background <body background="Image1.jpg" bgproperties="fixed">
  3. The best way to do this is with CSS. Take it out of the HTML. Do this: HTML <div id="image1" title=""> </div> CSS #image1 { positition:absolute; top: 16px; height: 142px; background-image: url(help_files/Top 111.gif); background-repeat: no-repeat; } This assumes you already have the image this size you want it to be.
Powered by Yahoo! Answers