Log in

View Full Version : fire fox frameset whitespace problem



wiklendt
02-06-2006, 10:18 PM
hi,

i've made a frameset in html (see code below) and it works finein IE6.02 on Win98, but has about 10px 'borders' between the frames in FF1 on Win98.

can anyone see why?

thanks in addvance.

<!doctype html public "-//w3c//dtd html 4.01 frameset//en"
"http://www.w3.org/tr/html4/frameset.dtd">
<html>
<head>
<title>witchybits.com - tarot, palmistry, numerology and more in Newcastle, Australia</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="./images/witchybits.ico">
</head>
<frameset rows="100, *" framespacing="0" framepadding="0">
<frame src="main_banner.htm" name="banner" frameborder="0" noresize marginwidth="10" marginheight="10">
<frameset cols="200, *">
<frame src="main_menu.htm" name="menu" frameborder="0" noresize marginwidth="5" marginheight="5">
<frame src="main_home.htm" name="home" frameborder="0" noresize marginwidth="15" marginheight="15">
</frameset>
<noframes>
<p>your browser does not support frames.
<br>
</noframes>
</frameset>
</html>

Twey
02-07-2006, 04:32 PM
Firstly, you shouldn't be using absolute pixel values for the frame sizes.
Secondly, try setting style="border-style:none;border-width:0;" on the frames.
Thirdly, you might want to close that paragraph at some point.

wiklendt
02-08-2006, 01:57 AM
thanks for the reply, but i found out what the problem was.

i had put the frameborder="0" in the frame tags, not the frameset tags, where they should have been. changing the place fixed the problem.

now, regarding the pixels, you may notice that only two frames have absolute values. the banner frame, and the menu frame. the other frame (content frame that i've name 'home' in the file) is defined with "*" pixels, which means that frame takes up the rest of the space after the first two are defined. this reassures that people with varied screen resolutions can still see the site in the way it was meant to be viewed, and that the menu and banner frames don't change sizes (because the menu has buttons as images that are specific in size)

second, the <p> tag has an optional close tag, which i've chosen not to use. you are right, though, i should close it because if i apply a style to the <p> element in my css i'll run into strife with some of my code, so thank for reminding me.

as for the code you suggested, i didn't get a chance to try it b/c of the success i had with my fix. however, seeing as it's a css solution, i will try that too, b/c it would be more efficient.

thanks for your feed back. :-)

Twey
02-08-2006, 07:34 AM
second, the <p> tag has an optional close tag, which i've chosen not to use.The <p> tag is not self-closing. A closing tag is always required.

now, regarding the pixels, you may notice that only two frames have absolute values. the banner frame, and the menu frame. the other frame (content frame that i've name 'home' in the file) is defined with "*" pixels, which means that frame takes up the rest of the space after the first two are defined. this reassures that people with varied screen resolutions can still see the site in the way it was meant to be viewed,But those frames may look odd at different screen resolutions. If you really must make sure they don't change size, I suppose it can't be helped, but it's still something to avoid wherever possible.