Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Background image co-ordinates

    Hey

    ... I'm not sure if this makes any sense... but I vaguely remember seeing somewhere that an image can be inserted on a page, as a background, with (x, y) co-ordinates.

    ... For example, say I have an image 250 x 250 in size, and I want it to appear behind a bunch of text on the page, exactly 50 pixels from the top and 15o pixels from the left... I'm sure it can be done, but I've no idea. <ilayers>?

    ... Anyways, kudos to whoever can help me out.
    Tombo out.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    <html>
    <head>
    <title>untitled</title>
    </head>
    <body>
    <div style="width:400px;font:400 24px verdana;color:pink;background:url(http&#58;//graphics.theonion.com/pics_3834/bush_sends_troops.jpg) no-repeat 150px 50px;">
    yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
    yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
    yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
    yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
    yadda yadda yadda yadda yadda yadda yadda
    </div>
    </body>
    </html>

    http://www.w3schools.com/css/css_background.asp


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •