vertical scrollbar problem in IE

Z

Z

Hi,

I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens
with IE 5.5 on Win2k):
If I set scrolling="auto" to frame, IE reserves space where vertical
scrollbar normally goes and doesn't render contents there when scrollbar is
hidden.

Here is frameset with left and right frames:

framset.html:
------------
<html>
<frameset cols="200,*" framespacing="0" border="0" frameborder="no">
<frame scrolling="auto" src="left.html" name="menu">
<frame scrolling="auto" src="right.html" name="main">
</frameset>
</html>

------------
left.html:
------------
<html>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0
bgColor="#AAFFAA">
<table cellspacing=0 cellpadding=0 width="100%" border=1>
<tr>
<td width="100%" height=500 align=middle>left<td>
</tr>
</table>
</body>
</html>
------------
right.html:
------------
<html>
<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0
bgColor="#FFAAAA">
<table cellspacing=0 cellpadding=0 width="100%" border=1>
<tr>
<td width="100%" height=500 align=middle>right<td>
</tr>
</table>
</body>
</html>

------------

When scrollbars are not visible, there should be no space between frames,
but IE adds blank strip (of scrollbar with) on the right side of each frame.
Opera (7.10) and Mozilla (1.6) render frameset correctly: tables on both
frames stretches to frame with, and when scrollbars goes on (due to browser
resizing) both tables shrink by scrollbar width.

Thanks,
Zoran Perak
 
S

Steve R.

Z wrote in message ...
I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens
with IE 5.5 on Win2k):

If you get rid of the tables in your HTML in the left and right frames it
will work ok.

It's the tables that are causing the problem.
 
Z

Z

Steve,

I am afraid it doesn't work OK. If you put plaint text instead of table you
get the same: blank stripe on the right edge.
Problem is that browser calculates content area wrong.

I can force contents to render there only if I use absolute width (not
percentage). If I set table width="200" instead of width="100%" then I get
table span over frame width.
But It doesn't suite me because when vertical bar goes on (due to contents
grow) I cannot see whole contents (unless I use horizontal scrollbar).

z
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top