WordPress.org

Forums

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

  1. Ajisai
    Member
    Posted 1 year 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
    Nuh uh moderator
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.