Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to align (position) a picture as a background in HTML  (Read 2955 times)

0 Members and 1 Guest are viewing this topic.

bart77

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    How to align (position) a picture as a background in HTML
    « on: November 15, 2010, 12:32:26 PM »
    Hello,

    I created a little website with three frames (columns). The far left and the far right are "extensions" to the middle one, this is why they must be positioned properly. In both outer frames I am using a .jpg as the background and nothing else. The problem is that I cannot align the .jpg background to the right edge of the frame (there is white gap between left and middle frame. Is there an easy way to do it?

    Here is the script for the left  frame:

    <HTML>
    <body
    BACKGROUND="Untitled1.jpg" style="background-repeat: repeat-y;" >
    </body>
    </HTML>

    Any help will be much appreciated.

    Best regards!

    bart77

      Topic Starter


      Newbie

      • Experience: Beginner
      • OS: Unknown
      Re: How to align (position) a picture as a background in HTML
      « Reply #1 on: November 16, 2010, 12:33:07 AM »
      In the meantime I managed to do it, however with CSS:

      <html>
      <head>
      <style type="text/css">
      body
      {background-image:url(Untitled1.jpg);
      background-repeat:repeat-y;
      background-position:right;
      }
      </body>
      </html>

      I still can't do it in HTML. If anyone knows, I am very curious - is it possible to align a .jpg background in a frame right?