WordPress.org

Ready to get started?Download WordPress

Forums

Spun
Keep the Sidebar fixed when scrolling down (3 posts)

  1. Ajisai
    Member
    Posted 4 months ago #

    Hey there,

    With the help of the brilliant community here, I managed to put the sidebar from the bottom to the right, on every single article.

    Now, I'd like to keep that sidebar fixed when scrolling down.
    Any idea how to do that?
    Thx

    Like of my site http://www.cbvinylrecordart.com

  2. Andrew
    Forum Moderator
    Posted 4 months ago #

    This will undo your float work, but add (assuming you want this desktop-only):

    @media only screen and (min-width: 1224px) {
    
     #secondary {
      position: fixed;
      top: 150px;
      right: 10%;
     }
    
    }

    http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

  3. Ajisai
    Member
    Posted 4 months ago #

    Yeah you re right.
    I tried that already, it does work with a desktop, not with a mobile or tablet

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.