View Full Version : Probelm in scroll bars in table
05-12-2007, 03:58 PM
I am not able to get scroll bars in table, I use IE 6.0. But I am able to get scroll bars in Mozilla 1.0. I have used style="overflow: auto;max-height: 100;" in my html file.
In mozilla,I am getting horizontal scroll bars even I have specified overflow: auto; in style. Please help me to get rid of it.
For your reference i have attached a sample file.
Please help me for getting scroll bars in a table using IE 6.0.
05-14-2007, 10:12 AM
Hi elayappan, the only solution probably is, place your table in a scrollable div (with a fixed height and overflow property), or create two tables - first part only "thead", and second part "tbody" place again in scrollable div :)
05-14-2007, 01:32 PM
I am not able to get scroll bars in table, I use IE 6.0. But I am able to get scroll bars in Mozilla 1.0.
Basically you are trying the get a vertical scrollbar for the body section of your table which you want to limit in height.
I tried your example, but in Firefox 2 I see no effect when using max-height. But I do see an effect when using height.
I am not even sure about what is correct rendering according to standards? According to Web Devout, Firefox not ignoring the overflow property on table row groups is a bug (http://www.webdevout.net/browser-support-css#support-css2propsbasic-overflow). This makes sense to me when I read in the CSS 2.1 Working Draft that overflow (http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow) only applies to non-replaced block-level elements, table cells, and inline-block elements.
But the W3C WAI shows an example (http://www.w3.org/WAI/UA/TS/html401/cp1001/1001-THEAD-TBODY-TFOOT-OVERFLOW.html) where one uses overflow: auto on the tbody element. Also, Talbot reports IE's inability to support scrolling on the tbody element as a bug (http://www.gtalbot.org/BrowserBugsSection/MSIE6Bugs/MSIE6BugTbodyOverflowAuto.html).
Perhaps some clarification is needed.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.