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 8272617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:11:28+00:00 2026-06-08T07:11:28+00:00

In relation to a question I posted on here yesterday, I am trying to

  • 0

In relation to a question I posted on here yesterday, I am trying to get a div which moves horizontally when scrolling, however it only goes so far across (because it’s the total window width subtracting the amount scrolled vertically) but I would like this div to go all of the way across the page…how would I do this?

http://jsfiddle.net/wH3Fn/

  • 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-06-08T07:11:31+00:00Added an answer on June 8, 2026 at 7:11 am

    As I answered the question yesterday, I’ll chime in here, too.

    Adding the following to your scroll handler

    console.log($("#block").css('left'));
    

    Shows that the block continues moving after it is out of view. If you need it to move faster (ie if you want it to move across the whole width of the window whilst still in view), then simply multiply up the left value as follows:

     $("#block").css({ "left":  (windowWidth - $(window).scrollTop())*2});
    

    The edit above makes the block move twice as fast (the *2 multiplier on the end). If you need it to move even faster, use *3 and so on.

    As commented on your question, I know it is tempting to use SO as a code generation tool, but this kind of issue is relatively simple to solve yourself with a little logic and some trial and error… You should try to do some research before coming here to ask the question in future, perhaps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In relation to my question here , I have a plot for which the
This question is in relation to a question I posted yesterday. The link -http://stackoverflow.com/questions/12636348/how-to-add-a-different-class-to-the-same-class-in-jquery
I have exactly the same question posted here: http://www.yiiframework.com/forum/index.php?/topic/25763-grab-data-from-many-to-many-middle-table-using-through/ What and how can the
After my 1st question with relation to CSS3 gradients in which I was recreating
This question is in relation to another question asked here: Sorting 1M records I
In relation to a previous question of mine found here: Autorun the Faye server
In relation to this previous question I am trying to create a batch file
In relation to my previous question here . If I am using the below
My question is in relation to the answer to my other question seen here
This is in relation to this other SO question which asks how to overwrite

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.