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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:56:41+00:00 2026-05-15T01:56:41+00:00

I’m new (only two weeks old) to jQuery, so please bear with me. I

  • 0

I’m new (only two weeks old) to jQuery, so please bear with me. I know that a very similar question was asked some time ago, but I do not know how to adapt the answer to my problem. I have a very wide multicolumn layout that is something like this:

| aaaa | bbbb | cccc | …   |
| aaaa | b    | cc   | …   |
| aaa  | cccc | ddd  | …   |

The code looks like:

<div id="container">
    <p>aaaaaaaaaaa</p>
    <p>bbbbb</p>
    <p>ccccccccccc</p>
    <p>dddddddddd</p>
    ...
    <p>xxxxxx</p>
</div>

There is no vertical scrolling and the container width is set in such a way that only two columns are shown. The user scrolls left or right to see the relevant text. What I want is to get the position currently on display, store it (maybe in a cookie) and retrieve it the next time the user opens the page.

I think that I need a way of finding out what paragraph is currently the left-top most, but other suggestions are very welcome.

Any ideas?

BTW: this is an internal project, so Mozilla only 🙂

  • 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-15T01:56:42+00:00Added an answer on May 15, 2026 at 1:56 am

    Suggestion: Why detect starting paragraph since the user can scroll between paragraphs.

    aa|bbbb|cc
    

    Here the user sees three paragraphs (1 full, 2 partial) as the scroll is continuous and not discrete with paragraphs. Unless manual scrolling is disabled and the user can only go left or right between paras with some custom controls such as:

    < >

    then you can simply save the left scroll state and restore that when the page is reopened. You can also make use of the new localStorage API instead of cookies for saving data across sessions locally.

    Try this example on jsfiddle. Scroll and refresh or close and reopen page.

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

Sidebar

Related Questions

Just a very general question, that not only applies to this example. Let's say
I am developing an iPhone-App that should run not only on new iphones, but
I have a new iPhone app that has the following (and only the following)
Now that VS2010 is in RC it seems it's only matter of weeks until
To begin with, I must say that I am VERY new to Ruby on
I had asked this question a few weeks back on how to preload images
I'm pretty much new to Android, but over the last two or three weeks
I'm only new to Unit Testing and ASP.NET MVC. I've been trying to get
I am new to JavaScript (only a couple of days of reading a book)
I am new to JavaScript (only a couple of days of reading a book)

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.