Forum Moderators: not2easy

Message Too Old, No Replies

Any way to fix IE's scrollbars

overflow:auto

         

Fotiman

5:20 pm on Jan 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a div which wraps a table. If the contents of the table get too wide, the div gets a scrollbar. The problem, though, is that in IE the scrollbar along the bottom covers the content within the table, whereas in Firefox the scrollbar begins below the table. Is there anyway to make IE behave more like firefox (with regards to the scrollbar position)?

My first thought was to add bottom padding to the div to leave room for the scrollbar, but unfortunately there are other items below the table that would then get pushed down further and look weird when there is no scrollbar.

Thanks for any suggestions.

coopersita

6:07 pm on Jan 25, 2006 (gmt 0)

10+ Year Member



My only CSS suggestion would be to get rid of the overflow:auto all together and just let horizontal scrollbar of the window do the job.

You could also use javascript, so that if the window size is below certain number, it adds the extra padding.

Fotiman

6:08 pm on Jan 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I can't. This is in a fixed width container.