tags:

views:

593

answers:

5

Hi, I want to add a vertical and horizontal scroll bar to the table with fixed header. By using thead and tbody tags I could add scrollbar in firefox but IE is not supporting the overflow:auto property in tbody. And IE8 does not support css expressions so can u tell me how to the task.

thanx!

+1  A: 

Take a look at

Scrollable table.

CSS Scrollable Table

Fixed Header Table using jQuery

rahul
A: 

Try your original sollution using overflow:scroll. You might also have to set a fixed height in px of the tbody.

awe
A: 

If you have overflow set to auto the tbody will just show the overflow, you need to explicitly state overflow: scroll and have a fixed height for the <tbody>.

bryceroney
I cannot set fixed height to the tbody. Records may increase.
shruti
The fixed height determines how many records will be shown on screen and then the "overflow" will be shown with a scroll bar.
bryceroney
On giving height also that isnt working for me in IE.
shruti
+1  A: 

On giving fixed height also that is nOt working in IE. The height is getting applied to tr which i gave to tbody.

shruti
A: 

Use CSS for the task required:

tableID { overflow: scroll; }

... About coloring visit this link (http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollbarColor.htm)!

vijay