Sergi
08.04.2002, 09:35
hi guys,
been trying to find a solution for this, if any of you can enlighten me i'd really appreciate. Otherwise i'll leave it as it is :)
Looks like w3c deleted border and framespacing from the specs. How can we delete the margins and borders around a frame now? TIA.
Example 1: following code validates but shows border. Even with the added style...
<font color=red>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>framed version</title>
<style type="text/css">
frame {
margin:0px;
border:0px;
}
</style>
</head>
<frameset cols="*, 780, *">
<frame src="wrap.html" noresize="noresize" frameborder="0" scrolling="no" />
<frameset rows="*, 310, *">
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="news.php" name="meddle" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
</html>
</font id=red>
Example 2: this code shows as it should but it fails to validate due to border and framespacing.
<font color=red>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>framed version</title>
</head>
<frameset cols="*, 780, *" border="0" framespacing="0">
<frame src="wrap.html" noresize="noresize" frameborder="0" scrolling="no" />
<frameset rows="*, 310, *" border="0" framespacing="0">
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="news.php" name="meddle" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
</html>
</font id=red>
Thanx again
cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][site][/url:c6exzkc6bl] || [url="sergi@dhtmlcentral.com"][e][/url:c6exzkc6bl]
</font id=green>
Edited by - Sergi on 10 Apr 2002 12:24:14
been trying to find a solution for this, if any of you can enlighten me i'd really appreciate. Otherwise i'll leave it as it is :)
Looks like w3c deleted border and framespacing from the specs. How can we delete the margins and borders around a frame now? TIA.
Example 1: following code validates but shows border. Even with the added style...
<font color=red>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>framed version</title>
<style type="text/css">
frame {
margin:0px;
border:0px;
}
</style>
</head>
<frameset cols="*, 780, *">
<frame src="wrap.html" noresize="noresize" frameborder="0" scrolling="no" />
<frameset rows="*, 310, *">
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="news.php" name="meddle" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
</html>
</font id=red>
Example 2: this code shows as it should but it fails to validate due to border and framespacing.
<font color=red>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>framed version</title>
</head>
<frameset cols="*, 780, *" border="0" framespacing="0">
<frame src="wrap.html" noresize="noresize" frameborder="0" scrolling="no" />
<frameset rows="*, 310, *" border="0" framespacing="0">
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="news.php" name="meddle" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
<frame src="wrap.html" noresize="noresize" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" />
</frameset>
</html>
</font id=red>
Thanx again
cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][site][/url:c6exzkc6bl] || [url="sergi@dhtmlcentral.com"][e][/url:c6exzkc6bl]
</font id=green>
Edited by - Sergi on 10 Apr 2002 12:24:14