• Welcome to Valhalla Legends Archive.
 

Frameset DTD MarginHeight/Width

Started by Grok, March 08, 2004, 08:31 AM

Previous topic - Next topic

Grok

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?

Adron


Grok

Yes I think so.  Gotta get rid of these frames after I get the application working.

Adron

I meant, maybe there's CSS to remove the margins?