Valhalla Legends Archive

Programming => Web Development => Topic started by: Grok on March 08, 2004, 08:31 AM

Title: Frameset DTD MarginHeight/Width
Post by: Grok on March 08, 2004, 08:31 AM
I'm using the Frameset DTD, and VS.NET complains about my frame tags having marginheight and marginwidth attributes, saying they do not exist in this dtd.  If I don't use these attributes, how do I get rid of the margin?


<!doctype html public "-//W3C//DTD HTML 4.01 Frameset//EN"
 "http://www.w3.org/TR/html4/frameset.dtd">

<frameset cols="300, *" border="0">
 <frame frameborder="yes" src="wik_idx_entry.asp" marginwidth="0" marginheight="0" noresize>
 <frame frameborder="yes" src="wik_idx_viewer.asp" marginwidth="0" marginheight="0">


If I leave them in, and run the code in IE6, the margins are properly removed.  If I take out those attributes, the margins return.  So obviously the browser is smart enough to know I want margins removed, but if VS.NET is complaining, I'm probably using invalid HTML.

Addendum:  I would prefer to do this in XHTML, with no frames.  Anyone know the new paradigm?
Title: Re:Frameset DTD MarginHeight/Width
Post by: Adron on March 08, 2004, 04:25 PM
Maybe CSS?
Title: Re:Frameset DTD MarginHeight/Width
Post by: Grok on March 08, 2004, 05:28 PM
Yes I think so.  Gotta get rid of these frames after I get the application working.
Title: Re:Frameset DTD MarginHeight/Width
Post by: Adron on March 08, 2004, 05:33 PM
I meant, maybe there's CSS to remove the margins?