Thursday, January 28, 2010

Display scroll bars for IE6

I got a headache today, because IE 6 doesn't like to display a scroll bar when the page is too wide. (To see the effect of IE 6 in IE 8, go to the Tools->Compatibility View Setting).

Fix #1: in your CSS Stylesheet or the in-page style property, declare overflow:auto
Unfortunately, this doesn't work in my case. Guess it is just a makeup change, not powerful enough.

Fix #2: enclose your control (e.g., gridview) into an asp_panel, which has embedded scrollbar option:
< asp:panel height="360px" id="RolesPanel" runat="server" scrollbars="Vertical" width="300px" >
 -- Some controls
< asp:panel >


The above fixes are all about server side. If those don't work ...
Fix #3: Install IE 8
or Forget about IE, use other browsers

No comments:

Post a Comment