Valhalla Legends Forums Archive | Web Development | Frameset DTD MarginHeight/Width

AuthorMessageTime
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?

[code]
<!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">
[/code]

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?
March 8, 2004, 2:31 PM
Adron
Maybe CSS?
March 8, 2004, 10:25 PM
Grok
Yes I think so. Gotta get rid of these frames after I get the application working.
March 8, 2004, 11:28 PM
Adron
I meant, maybe there's CSS to remove the margins?
March 8, 2004, 11:33 PM

Search