SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,656
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    fixed background?

    how come my background doesn't seem to be fixed?
    http://fixmysite.us/landing/

    Thx...
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,576
    Mentioned
    63 Post(s)
    Tagged
    2 Thread(s)
    You might want to set it to "fixed"...

    style.css (line 1)
    Code:
    body {
        background: url("../images/back.jpg") no-repeat scroll center top transparent;
    }

  3. #3
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,656
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    tried that and doesn't seem to work
    heres the body tag
    body {
    background:url(../images/back.jpg) top center no-repeat scroll;
    background-position:fixed;
    }
    "Oh, and Jenkins--apparently your mother died this morning."

  4. #4
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,576
    Mentioned
    63 Post(s)
    Tagged
    2 Thread(s)
    Try this:
    Code:
    body	{ 
        background:url(../images/back.jpg) top center no-repeat scroll; 
        background-position:fixed;    /* delete me */
        background-attachment:fixed;    /* add me */
    }
    Or use the code in post #2 and delete the background-position line.


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
  •