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

  • Home
  • SEARCH
  • 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 6576717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:32:50+00:00 2026-05-25T15:32:50+00:00

I made a table for the back-office of an e-commerce site. The table content

  • 0

I made a table for the back-office of an e-commerce site. The table content (tbody) has a fixed height and it is scrollable through a scrollbar on the right-hand side as depicted in this picture: http://img690.imageshack.us/img690/6483/screenshot20110917at819.png

The problem is that if I resize the browser window, this table scrollbar diseappears: http://img26.imageshack.us/img26/4919/screenshot20110917at820.png

I know this is supposed to be normal behavior, but my customer insists to keep the table scrollbar even when resizing the window. Is there a way to implement this behavior?

Here is the css for reference: (the table body’s class is scrollContent)

/* define height and width of scrollable area. Add 16px to width for scrollbar */
div.tableContainer {
    clear: both;
    overflow: auto;
    width: 100%; 
}

/* set table header to a fixed position. WinIE 6.x only                                           */
/* In WinIE 6.x, any element with a position property set to relative and is a child of           */ 
/* an element that has an overflow property set, the relative value translates into fixed.    */
/* Ex: parent element DIV with a class of tableContainer has an overflow property set to     auto */
thead.fixedHeader tr {
    position: relative
}

/* set THEAD element to have block level attributes. All other non-IE browsers                */
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
html>body thead.fixedHeader tr {
    display: block;
    width: 100%
}

/* define the table content to be scrollable                                                  */
/* set TBODY element to have block level attributes. All other non-IE browsers            */
/* this enables overflow to work on TBODY element. All other non-IE, non-Mozilla browsers */
/* induced side effect is that child TDs no longer accept width: auto                     */
html>body tbody.scrollContent {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}
  • 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-25T15:32:51+00:00Added an answer on May 25, 2026 at 3:32 pm

    Actually you if you change the overflow-x: scroll or auto should resolve the problem. Since it’s hidden they can’t access the scroll bar which is probably their complaint.

    The other option would be to run a javascript or jquery that would check for screen resolution and then replace the table with a different table or replace the images with smaller images. This would allow the table to resize down so that it could display in the non-maximized window.

    /—- EDIT —-/

    Check window resize (you also don’t have to do this on the window you can do it on an element but the window will give you a more accurate read on whether they have resized their window.

    var timerID = 0,
    var winWidth = $(window).width(),
    var winHeight = $(window).height();
    
    $(document).ready(function()
    {
        $(window).resize(function()
        {
            var winNewWidth = $(window).width(),
                winNewHeight = $(window).height();
            if(winWidth != winNewWidth || winHeight != winNewHeight)
            {
                window.clearTimeout(timerID);
                timerID = window.setTimeout(function()
                {
                    // do something here
                },100)
            }
            winWidth = winNewWidth;
            winHeight = winNewHeight
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I made this site a while ago in my table days but have
I made this Greasemonkey script: var maxpi = 250; var p1 = /html/body/div/div[2]/div/div[2]/table[2]/tbody/tr[1]/td[11]; var
I have a table made up of thead and tbody elements. I have some
I have made a table row draggable with jQuery. It works as expected (mostly)
I'm traying to extract info from a table made in xml, here is an
In the page Toggle Squares , I have a table made out of an
This is more like a question of principle. I made a table with 100%
Made solution change: I am trying to display a html table of data.. In
I've made some changes in the table structure and especially the relationships between tables
I have made a dump of my database in which one table is pretty

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.