Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old September 14th, 2005, 10:25 AM
Mark
Guest
 
Posts: n/a
Default 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

  #2  
Old September 14th, 2005, 11:25 AM
Spartanicus
Guest
 
Posts: n/a
Default Re: frameset doctype and framespacing/border

Mark <scheper@xs4all.nl> wrote:
[color=blue]
>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">[/color]

Sure you can, but it won't validate against the public DTD.
[color=blue]
>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).[/color]

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
  #3  
Old September 14th, 2005, 11:45 AM
'sNiek
Guest
 
Posts: n/a
Default Re: frameset doctype and framespacing/border

Mark schreef:[color=blue]
> 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 :([/color]

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



--
Niek
  #4  
Old March 11th, 2006, 10:04 PM
Newbie
 
Join Date: Mar 2006
Posts: 1
Default

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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.