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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:05:23+00:00 2026-06-02T07:05:23+00:00

I have a pagination like this <div> ( =400px ) <ul> ( =2000px )

  • 0

I have a pagination like this

<div> ( =400px )
<ul> ( =2000px )
<li>1<div>1</div></li>
<li>2<div>2</div></li>
<li>3<div>3</div></li>
..
</ul>
</div>

The pagination goes up to 100 and is about 2000px width. However, the div is only 400px width with overflow:hidden This means only a certain amount of li is visible. I also have two buttons do do animation left and right, this way a visitor can ‘slide’ left and right trought the pagination:

$(".right").live('click', function(){
  $(ul).animate({"left": "-=140px"}, "fast");
});

$(".left").live('click', function(){
  $(ul).animate({"left": "+=140px"}, "fast");
});

The problem is that at a certain point the ‘active'(Class) pagination number is out of sight (the reason is not important in this question)

I would like to have control over the li.active trough whatever Jquery event or on document ready. I would like the li.active to be visible in 400px div all the time. So that means the ul would move left or right relative to the li.active so that the li.active will not be in the part that is ‘hidden’ (overflow:hidden)

I hope my question is clear, I cant post all the code do to its big size. (it would only complicate things..)

  • 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-02T07:05:25+00:00Added an answer on June 2, 2026 at 7:05 am

    Ok, my only guess is add a css rule on “active” class with position:absolute;

    EDIT :

    Try this solution here, if it’s what you’re looking for. I hope it helps!

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

Sidebar

Related Questions

I have a pagination system like this: [content] 1 2 3 Next > when
I have pagination links set-up like this: http://localhost/?page=2 http://localhost/?page=3 They are wrapped in Anchor
I have a pagination script, which can be seen here: http://www.automotori6282.tk/phpsandbox/ This is the
I have a view file like this : <html> <head> <meta name=layout content=main />
I'm using this code for my pagination, and I'd like the user's choice to
i have pagination links like 1,2,3,4...am trying to change appearance of current page using
i have some javascript code in Django templates like this <script type=text/javascript> pager.init(); pager.showPageNav('pager',
I have this script below which i found on SO to generate pagination and
I have a JSF datatable like this one: <h:form id=productsBox> <h:dataTable var=product value=#{categoriesBean.category.products} id=productsTable>
Reporting Services 2005 My layout is like this: I have the mainreport which contains

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.