Title: wpdotorgforums's Replies | WordPress.org

---

# wpdotorgforums

  [  ](https://wordpress.org/support/users/wpdotorgforums/)

 *   [Profile](https://wordpress.org/support/users/wpdotorgforums/)
 *   [Topics Started](https://wordpress.org/support/users/wpdotorgforums/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wpdotorgforums/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wpdotorgforums/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wpdotorgforums/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wpdotorgforums/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wpdotorgforums/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Hueman] How To Make Primary and Secondary Sidebar Sticky?](https://wordpress.org/support/topic/how-to-make-primary-and-secondary-sidebar-sticky/)
 *  [wpdotorgforums](https://wordpress.org/support/users/wpdotorgforums/)
 * (@wpdotorgforums)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/how-to-make-primary-and-secondary-sidebar-sticky/#post-12262446)
 * Hi.
    I’m aware of, and know how to use, the inspector. **I’m interested in what
   specific CSS code is used to make the sticky sidebar.** Has anyone been successful
   in making their sidebar sticky?
 *     ```
       .sidebar-secondary {
           display: flex;
           flex-direction: column;
           flex: none;
           height: 100vh;
           width: 20%;
           position: sticky;
           padding-top: 3em;
           text-align: center;
       }
       ```
   
 * Please note **“position: sticky;”**.
 * Using this code, the menu will not remain sticky. The **3em top** seems to make
   it sticky only partially and the further you scroll, it continues down the page.
   
   Thanks for any suggestions for modifications.
    -  This reply was modified 6 years, 4 months ago by [wpdotorgforums](https://wordpress.org/support/users/wpdotorgforums/).
    -  This reply was modified 6 years, 4 months ago by [wpdotorgforums](https://wordpress.org/support/users/wpdotorgforums/).

Viewing 1 replies (of 1 total)