SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    Queensland Australia
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Fixed Background image with content scrolling over it

    Hi All,

    will this code work in the majority of modern browsers?

    body {
    background-image: url(images/news_bg.jpg);
    background-repeat: no-repeat;
    background-color: #000000;
    background-attachment: fixed;
    }

    with the content scrolling over the fixed background?

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Yes it should work
    You can also declare it all in one property:
    Code:
    body {background: #000 url(images/news_bg.jpg) no-repeat fixed}
    Hope it helps


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
  •