Results 1 to 2 of 2

Thread: Fixed full page bg image

  1. #1
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default Fixed full page bg image

    I would like to design a page that is in a container on top of a large background image or pattern.

    I would like the background to NOT move while the main content is scrollable.

    How is this done?

  2. #2
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default Answer:

    OK, found it myself -for some reason I thought it was more complicated.

    Code:
    body
    {
    background-image:url('smiley.gif');
    background-repeat:no-repeat;
    background-attachment:fixed;
    }

Bookmarks

Posting Permissions

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