Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3305548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:10:54+00:00 2026-05-17T21:10:54+00:00

Please see this UI sketch image, I have this div in sidebar (black box)

  • 0

Please see this UI sketch image, I have this div in sidebar (black box) on a certain site and as I scroll down or scroll up, I don’t want it to hide…I want it to move itself down as I scroll down and move itself up as I scroll back up so that it never hides out. Can you recommend me some jQuery that can get this done? or something else. Please help, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:10:55+00:00Added an answer on May 17, 2026 at 9:10 pm

    Don’t use jQuery for this please; it’s pure CSS.

    #MyDiv
    {
        position: fixed;
        top: 10px;
        left: 10px;
    }
    

    Adjust the exact position to your liking by adjusting top and left. Maybe you want it centered vertically like in the image (if the sketch is accurate in that aspect), in which case you have to deal with all the fun tricks necessary for vertical centering; hopefully in your case something like this would work:

    #MyDiv
    {
        position: fixed;
        top: 50%; /* This places the _top_ of the div in the middle of the page. */
        left: 10px;
        height: 500px;
        margin-top: -250px; /* This moves the div upward by half of its height,
                               thus aligning the middle of the div with the middle
                               of the page. */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please see the back trace below, I don´t think I have seen this before
Please see this jsFiddle: https://jsfiddle.net/Wmq6f/ I have a textarea that has a background image,
Please see this This Image for a picture of the problem. I have a
Please see this image for what I'm referring to as a static box: I'm
Please see this fiddle I want the scrolling div stop following when left div
To understand what I mean, please see this snippet: <table style=width: 100%> <tbody><tr><td> <div
Please see this image: I need something like this which will show quote's gradually
Please see this jsFiddle for reference: (jsFiddle) Div Resizing [to see what I'm having
Please see this fiddle for my situation. Essentially, I have a floating span which
please see this html codes : <!-- PAGE - 5 --> <div class=section cc_content_5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.