Support » Fixing WordPress » "Autoscrollable" iFrame?

  • Resolved xbenas

    (@xbenas)


    Hey guys, here’s the page: http://www.9000.lt

    When you first visit the site, a Facebook like pop-up comes up. If you scroll down or up, it automatically adjusts itself to be on the center.

    Now, I want the same behavior as this box on my Facebook like box on the widget area.

    Can someone post me a simple code on how to get this effect?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Andrew Nevins

    (@anevins)

    Try the jQuery technique from this http://css-tricks.com/scrollfollow-sidebar/

    xbenas

    (@xbenas)

    I am a little confused on how to use this.

    Obviously, just putting that CSS in the Custom CSS won’t do the trick.

    #page-wrap {
      width: 600px;
      margin: 15px auto;
      position: relative;
    }
    
    #sidebar {
      width: 190px;
      position: fixed;
      margin-left: 410px;
    }

    What else I need to do after that?

    To make things simple, how to make text “Text” with that effect? The iFrame can wait.

    Moderator Andrew Nevins

    (@anevins)

    You can’t take the CSS literally…
    Can you link your webpage?

    xbenas

    (@xbenas)

    Moderator Andrew Nevins

    (@anevins)

    Try the jQuery technique instead of the CSS.

    xbenas

    (@xbenas)

    OMG I did it! But now it keeps scrolling forever down to hell.

    How to fix this?

    BTW Thanks a lot man!

    EDIT: Maybe the infinite-scroll is because of my theme?

    xbenas

    (@xbenas)

    I have gotten it to work the way I want, but I find it impossible to describe how.

    Case closed!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘"Autoscrollable" iFrame?’ is closed to new replies.