470,819 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,819 developers. It's quick & easy.

frameset doctype and framespacing/border

Hi

If i use this doctype:

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

i can not use the attributes framespacing and border like this:

<frameset cols ="100%" rows ="20,419,*" framespacing="0" border="0">

But when i leave these, i get those ugly borders :(

Okay, don't use frames (i don't anymore), but i need to know how to
solve this (if at all).

Thanks!

Mark

Sep 14 '05 #1
3 5084
Mark <sc*****@xs4all.nl> wrote:
If i use this doctype:

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

i can not use the attributes framespacing and border like this:

<frameset cols ="100%" rows ="20,419,*" framespacing="0" border="0">
Sure you can, but it won't validate against the public DTD.
But when i leave these, i get those ugly borders :(

Okay, don't use frames (i don't anymore), but i need to know how to
solve this (if at all).


You've provided the best answer yourself.

Other alternatives are accepting the borders, accepting validation
errors against the public DTD, or using a custom DTD.

--
Spartanicus
Sep 14 '05 #2
Mark schreef:
Hi

If i use this doctype:

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

i can not use the attributes framespacing and border like this:

<frameset cols ="100%" rows ="20,419,*" framespacing="0" border="0">

But when i leave these, i get those ugly borders :(


Try adding frameborder="no" to the <frameset>-line

--
Niek
Sep 14 '05 #3
Hi Mark,
To validate your document you need to use a custom DTD. Framespacing and border are attributes specific of IE (although they also work fine with Firefox). I explain in an article how to create a custom DTD for that only purpose:
http://www.onemillionpound.net/Tools.../link_001.html
Mar 11 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Hans | last post: by
3 posts views Thread by Jan Plastenjak | last post: by
1 post views Thread by Manu | last post: by
13 posts views Thread by Andrew C. | last post: by
8 posts views Thread by Frances Del Rio | last post: by
reply views Thread by Charles A. Lackman | last post: by
Fuhrer
1 post views Thread by Fuhrer | last post: by
reply views Thread by Giggle Girl | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.