Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Freezing a background image?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30828
    Tucker29621
    Member

    Hello,

    I’m trying to design a site where the background image remains frozen while scrolling….. When you move the sliders the content scrolls over the background….. For clarification please visit this site http://www.unicoioutfitters.com/index.shtml

    If you know how to accomplish this please give me some direction….

    Thanks,
    Mike

    #72017
    soap
    Participant

    Looks like you’ve already achieved that? I don’t see the background image moving when you scroll.

    If you DO want it to scroll just add, background-attachment: scroll

    #71979
    Tucker29621
    Member

    Hey Soap,

    Sorry…. That’s not my site; it’s the programming I’m trying to duplicate. Can I use the same command and add “no scroll”??? I’ll try it….

    Thanks

    #71980
    Tucker29621
    Member

    This code kind of works…..except..the now my background pic will not display at all when I scroll to the bottom… Any thoughts??

    background-repeat: no-repeat;
    background-position: 0 0;
    background-attachment: fixed;

    #71964
    soap
    Participant

    No just use

    background-attachment:fixed;
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.