Html code help please?

When putting an image in the background what code do I use to get the picture to go from edge to edge?

Public Comments

  1. YOu need to resize the image to the resolution of the screen you want. html wont stretch an image.
  2. there are several ways. see the link which explains beautifully
  3. http://www.htmlcodetutorial.com/quicklist.html
  4. <body background="background.jpg"> The image will repeat if smaller than the screen :) You can use GIF or JPG file formats :)
  5. To avoid effects of different width screens, use a table. This one is for an image 800 pixels wide. <body bgcolor="#dddddd" vLink=#ffffff aLink=#ffff00 link=#ffeeee> <table border="0" background="photos/back3.jpg" cellspacing="0" cellpadding="0" align=center width="800"> <tr> <td> </td> </tr> </table> </body>
Powered by Yahoo! Answers