can you stretch a background image?

Discussion in 'HTML' started by John, Oct 6, 2006.

  1. John

    John Guest

    Hi

    I have the following image which will stretch at the bottom of the page.

    <img src="castle.jpg" width="100%">

    However what I really want is an image that I can print over - ie the image
    is background.

    The following is in CSS

    body { background: white url(castle.jpg) no-repeat bottom centre; }

    but there is no "width=100%" in CSS.

    Is there a way in pure HTML?

    Regards
    John
     
    John, Oct 6, 2006
    #1
    1. Advertising

  2. John

    richard Guest

    "John" <> wrote in message
    news:...
    > Hi
    >
    > I have the following image which will stretch at the bottom of the page.
    >
    > <img src="castle.jpg" width="100%">
    >
    > However what I really want is an image that I can print over - ie the
    > image is background.
    >
    > The following is in CSS
    >
    > body { background: white url(castle.jpg) no-repeat bottom centre; }
    >
    > but there is no "width=100%" in CSS.
    >
    > Is there a way in pure HTML?
    >
    > Regards
    > John


    If I understand correctly, you would now use the z-index. Assigning it a
    value of -1.
    http://1-small-world.com/index2.html
    Something like that?
    BTW, there is no = in CSS, it is : .

    height:50px; width:100%
     
    richard, Oct 6, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Water Cooler v2
    Replies:
    3
    Views:
    36,927
    Water Cooler v2
    Jul 12, 2006
  2. Bob Altman

    How to stretch a background image?

    Bob Altman, Aug 25, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    723
    Bob Altman
    Aug 26, 2008
  3. AAaron123
    Replies:
    2
    Views:
    534
    AAaron123
    Nov 3, 2008
  4. TAM
    Replies:
    1
    Views:
    387
    David Dorward
    Apr 30, 2004
  5. Water Cooler v2
    Replies:
    1
    Views:
    167
    David Dorward
    Jul 12, 2006
Loading...

Share This Page