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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:08:15+00:00 2026-06-05T07:08:15+00:00

I have to display a table with many columns on a web page. The

  • 0

I have to display a table with many columns on a web page. The columns are basically days of the week therefore only 7 columns need to be displayed at once (out of four weeks in total).

I have set up a window with the overflow set to hidden which displays the first seven days and managed to get the table to scroll left seven days however the table won’t scroll further that this. If I scroll back then the table scrolls back too far and the table totally disappears to the right.

I am quite new to jQuery and realise that I should be using possibly the position() or offset() functions. I am sure this is a simple piece of code although my hours of googling have turned up nothing that covers this problem.

Does anyone know any decent tutorials out there to get me started ? Thanks

It is simply having a container div of 500px with overflow set to hidden continaing a seperare div of 2000px. When the user clicks on the previous or next buttons the inner div will scroll plus or minus 500px dependent on the position.

  • 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-05T07:08:16+00:00Added an answer on June 5, 2026 at 7:08 am

    try this:

    $('.next').click(function(event){
        if($('.table').css('left') != '-1500px') {
        $(this).prop('disabled', true)    
            $('.table').animate({left:'-=500px'}, 500, function() {
                  $('.next').prop('disabled', false)    
            });
    }
    });
    
    
    $('.prev').click(function(event){
        if($('.table').css('left') != '0px') {
        $(this).prop('disabled', true)   
            $('.table').animate({left:'+=500px'}, 500, function() {
                  $('.prev').prop('disabled', false)    
            });
    }
    });
    

    http://jsfiddle.net/ZSFFS/27/

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

Sidebar

Related Questions

I have too many columns in a table to display them all at once,
I have a need to display many numerical values in columns. These values need
I have a table with 5 columns where I need the user to select
I would like to display a table with many columns. All columns cannot fit
I have a table with many columns, some of which have divs which are
I have a table entries with three columns: id, name, display_name . I need
I have a table with 3 columns: id , updated_at , click_sum . Many
i have a <table> and many (34) <td> . I want to display three
I have added checkbox in display table using decorator class as shown in below
I have some data that I have to display as a table. I think

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.