Click to See Complete Forum and Search --> : frames
I have created a website with frames (top,middle,bottom.)
I am trying to join the 3 frames so they show up as one page?
I have set the values of each of the frames so they are as close as possible and i have set the background color so that i can see each of the frames.
I also set the frameborder="yes" so that i can see the border of the frames. This shows how far each of the pages(frames) are apart.
I hope someone can help me???
Thanks in advance.
Stefan
02-14-2003, 07:54 AM
This example code will minimize the area between the frames in most browsers. (unfortunately it not possible to do that using 100% valid code, but you can limit it to 1 single proprietary attribute that works crossbrowser)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>
<frameset cols="100, 1*" border="0"> <!-- border="0" is a bugfix for incorrect frameborder=0 support in IE, NS as well as Opera -->
<frame name="nav" src="nav.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto">
<frame name="main" src="main.html" frameborder="0" marginwidth="1" marginheight="1" scrolling="auto">
<noframes>
<body>
<p>
Frames are not working in your Browser.<br>
You can reach the respective pages on the frames via these links<br>
<a href="nav.html">Navigation</a><br>
<a href="main.html">Main</a>
</p>
</body>
</noframes>
</frameset>
</html>
Stefan
02-14-2003, 07:56 AM
Originally posted by Dave Clark
marginwidth="0" marginheight="0"
0 is not a legal value for either attribute.
Stefan
02-14-2003, 04:47 PM
Originally posted by Dave Clark
The point is moot (adj.). If you know what that words means, then you'll leave this subject alone.
I beg to differ. I think it's a highly interesting issue. :)
The 4.01 Spec clearly states that it MUST be 1 or a higher number.
But just to make sure I went to the validator to verifiy it, and a value of 0 passed. Obviously something was rotten in Denmark and after some digging around I managed to find this
http://www.w3.org/MarkUp/html4-updates/errata
2. Values of marginwidth/marginheight may be 0.
Added: 17 Jan 2000
Type: Error
Refers to: 24 Dec 1999 version, 16.2.2 The FRAME element
Description: The definitions of the marginwidth and marginheight attributes say that the value must be an integer greater than zero.
Correction: The value must be an integer greater than or equal to zero.
So what we are looking at is an error in the spec later corrected in an errata.
Values of 0 are correct