There's this website, the creation of which I've been sort of helping out with (have ended up doing the frig thing).
Anyway, I've got a table in a frame on the left hand side. The frame width has been set so to fit the table and its contents in it and the scroll bar on auto.
When I preview in Firefox, it's all wonderful, and the vertical scroll bar appears only. This is the desired result.
When previewed in Internet Explorer, the horizontal scroll bar also appears. It doesn't matter how wide I make the frame, the friggin scroll bar is always there. Why why WHY?
Can anyone help me please...
Could you post some of your code (markup) please? Is this a complete frameset, or an iframe, or what?
Thanks Omega Man. I suspect frameset. The page is divided into three frames as such ...
---------------------------
Frame 1
---------------------------
| F | F |
| r | r |
| a | a |
| m | m |
| e | e |
| 2 | 3 |
Note there is a blank (null) fourth frame to the right of frame 3 so that text in frame 3 wraps to the picture in frame 1 which is 1024 pixels wide. (I have another version to suit an 800 pixel screen res with a tricky java thing that detects which to open.)
The code below is for the 1024 pisel version.
<frameset rows="170,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="title1024-hp.html" name="topFrame" scrolling="No" noresize="NORESIZE" id="topFrame" />
<frameset rows="*" cols="155,869,*" framespacing="0" frameborder="no" border="0">
<frame src="contents-hp.html" name="leftFrame" frameborder="no" noresize="noresize" id="leftFrame" />
<frame src="info_hp.html" name="mainFrame" noresize="noresize" id="mainFrame" />
<frame src="null.html" name="nullFrame" id="nullFrame" />
</frameset>
</frameset><noframes></noframes>
Yeah... Um, so why are you using frames? I'm not sure what to make of this in the current state. I've cleaned it up a bit and tried it in Firefox and IE7 and both look fine. The code below validates to XHTML 1.0 Frameset with no warnings or errors. That's how it should be. Do you use the id attributes of the frames for anything? If not, you should get rid of them because they are unsupported by IE 5, 5.5, & 6, Netscape 6, and others. Which version of IE are you testing it in?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<frameset rows="170, *">
<frame id="topFrame" name="topFrame" src="title1024-hp.html" scrolling="No" noresize="noresize" frameborder="0" />
<frameset cols="155, 869, *">
<frame id="leftFrame" name="leftFrame" src="contents-hp.html" noresize="noresize" frameborder="0" />
<frame id="mainFrame" name="mainFrame" src="info_hp.html" noresize="noresize" frameborder="0" />
<frame id="nullFrame" name="nullFrame" src="null.html" noresize="noresize" frameborder="0" />
</frameset>
<noframes>
<body>
<p>Your browser does not support frames</p>
</body>
</noframes>
</frameset>
</html>
you might try adding a style to the frame and use 'overflow: hidden' optionally you could use 'overflow-x: hidden; overflow-y: scroll;' the third option is 'overflow: auto'
Sending ...