Topic: frame has no border... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9607" title="Pages that link to Topic: frame has no border... (Page 1 of 1)" rel="nofollow" >Topic: frame has no border... <span class="small">(Page 1 of 1)</span>\

 
Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 02-28-2003 00:05
quote:
The problem: you try to set frame borders to zero, but a thin line still appears between frames in some browsers.

The solution: set everything to zero. Sometimes different browsers understand different things. By covering everything that any browser might understand, you solve the problem. The only time this won't work completely is if you have fairly complex framesets. In that case there's often a stubborn remaining line that just won't go away no matter how hard you try.



quote:
<FRAMESET ROWS="60,*" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 >
<FRAME SRC="doc1.html" NAME="top" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
<FRAMESET COLS="160,*" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 >
<FRAME SRC="doc2.html" NAME="left" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
<FRAME SRC="doc3.html" NAME="main" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
</FRAMESET>
</FRAMESET>



I just wonder if this is good way to get no border frame. Any comment appreciated. Do you guys do like above when you want to get no border frame? Or omit anything?



Hiroki Kozai

twItch^
Maniac (V) Mad Scientist

From: the west wing
Insane since: Aug 2000

posted posted 02-28-2003 01:44

Well, I don't particularly like frames, myself, but the code will work...except I'd like to give helpful advice, to at least appear more compliant to standards.

What you've got...

code:
<FRAMESET ROWS="60,*" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 >
...
<FRAME SRC="doc2.html" NAME="left" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
...
</FRAMESET>



should be...

code:
<frameset rows="60,*">
...
<frame src="doc2.html" name="left" frameborder="0" marginwidth="0" marginheight="0" />
...
</frameset>



Notice few things:

  • All tags should be lowercase, to comply with XHTML standards (this is regarding XML and the case-sensitive nature of XML)
  • All attributes should be in double- or single-quotation marks (I prefer double, myself)
  • All attribute titles inside tags should be lowercase--see mention #1.
  • Notice the change in attributes on the <frameset> tag. According to standards, the only definitions you may put in there are "rows", and "cols"
  • Notice the changes in the attributes on the <frame> tag. According to standards, the only definitions you may put in there are "frameborder", "longdesc", "marginheight", "marginwidth", "name", "noresize", "scrolling", and "src"



But this is all contingent on the fact that you've got the proper DTD at the top of the code, which is...

code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">



if you're wanting to comply to XHTML1 standards of framesets, or...

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



if you're wanting to comply with HTML4 standards of framesets.

Hope that helps you.


Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 02-28-2003 06:28

Thanks a lot. Yes, I understand what you mean. I have jsut done HTML tutorial here: www.w3schools.com Now I am doing XHTML tutorial. Your advices reminds me of those difference between HTML and XHTML.

quote:
Notice the change in attributes on the <frameset> tag. According to standards, the only definitions you may put in there are "rows", and "cols"

Notice the changes in the attributes on the <frame> tag. According to standards, the only definitions you may put in there are "frameborder", "longdesc", "marginheight", "marginwidth", "name", "noresize", "scrolling", and "src"



I did not know about them. It was good to know. actually those code came from tutorial on the web. Sorry I can not tell you where it was. But I was not satisfied whay they said. Because code seemed to me very messy. Your code is what I expected.

But I am not too sure about following:

quote:
<FRAMESET ROWS="60,*" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 >...<FRAME SRC="doc2.html" NAME="left" BORDER=0 SPACING=0 FRAMEBORDER=0 FRAMESPACING=0 MARGINWIDTH=0 MARGINHEIGHT=0 >...</FRAMESET>



What does spacing and framespacing mean? In your example, they are omited, aren't they? Just wonderfing.

Again, thanks for your help. Any further help is the most appreciation.



Hiroki Kozai

twItch^
Maniac (V) Mad Scientist

From: the west wing
Insane since: Aug 2000

posted posted 03-01-2003 00:37

The attributes spacing and framespacing are deprecated. Pretend they don't exist. That will save you a headache.

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 03-01-2003 06:52

Thanks a lot. Have a good weekend.

Hiroki Kozai

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 03-01-2003 06:53

Thanks a lot. Have a good weekend.

Hiroki Kozai



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu