Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2012
    Location
    Oregon, USA
    Posts
    16
    Thanks
    1
    Thanked 1 Time in 1 Post

    Fixed Background Image

    I'm trying to accomplish what is being done in the link below. Note how the background is completely fixed when you resize the window to be narrower. The image stays centered and allows the sides to fall off without a scroll bar until a certain point around 1000px.

    http://www.jennyandgrayden.com/

    I can't quite put my finger on what is allowing it to do that. What would be the simplest way to accomplish this?
    Last edited by aliqui; 11-11-2012 at 11:19 PM. Reason: Resolved

  • #2
    New Coder
    Join Date
    May 2012
    Location
    Oregon, USA
    Posts
    16
    Thanks
    1
    Thanked 1 Time in 1 Post
    I may have figured it out. I still need to work on some height stuff, but I think I'm resolved. Now to find that resolved button...


    Code:
    body {
    background: url(image link) no-repeat  fixed center center;
    }


  •  

    Posting Permissions

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