1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

How To Make Your Web Page Background Image Stationary

Discussion in 'HTML & Website Design' started by pabin2009, Sep 2, 2009.

  1. #1
    If you'd like to display a stationary image behind your text, you can do so by adding attributes to your HTML body tag.

    Stationary background images remain in one place even when scrolling through the page. Only the text will move. To create this effect, place the code below within your <BODY> tag.

    <body background ="yourimage.gif" bgproperties="fixed">

    Edit the text indicated in bold to suit your needs.

    When selecting your background image, keep in mind that your text will be moving over your image, so try to select an image that won't make your text difficult to read. To prevent your background image from tiling (repeating), place the following code between your <HEAD> and </HEAD> tags.

    <STYLE TYPE="text/css">
    <!--
    BODY { background-image: url(yourimage.jpg) }
    BODY { background-repeat: no-repeat }
    BODY { background-position: center }
    -->
    </STYLE>

    Using a stationary image background provides a great way to enhance your web page.


    Thank you,
     
    pabin2009, Sep 2, 2009 IP
  2. AdscendJeremy

    AdscendJeremy Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <body background ="yourimage.gif" bgproperties="fixed">

    Use the CSS method, which I believe is:
    background-position: fixed;
     
    AdscendJeremy, Sep 2, 2009 IP