5 replies [Last post]
Grador
Offline
newbie
Last seen: 17 years 51 weeks ago
Joined: 2005-02-15
Posts: 2
Points: 0

I don't know if this is right forum form my question but I didn't find any other so I will try...

How can I make borderless frame with accordance with HTML 4 specifications ?
Code below doesn't work although it should. It only works when I add border=0, or frameborder=0 to frameset element, but in specification, this element can't have neither of these tags. Can anybody give me any advice ? Just remember that framset element can't have border tags.
Actually, the code bellow works if the two files (or at least one of them) don't exist. If both files exist the border pop up Sad

<html>
<frameset cols="20%,*">
<frame name="left_panel" src="left_panel.html" frameborder="0" >
<frame name="main_frame" src="main_frame.html" frameborder="0" >
</frameset>
</html>

Tags:
ian
ian's picture
Offline
Enthusiast
South Carolina
Last seen: 18 years 13 weeks ago
South Carolina
Timezone: GMT-5
Joined: 2004-11-08
Posts: 103
Points: 0

Frameborder hiding

I believe that it should just be:

<FRAMESET ROWS="50%,50%" BORDER="0">

Just remove "frame" from the border attribute

-clever quote at the bottom of my post-

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 48 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Frameborder hiding

Frameborder is an attribute of <frame>. Allowed values are "yes|no" or "1|0". <frame> does not have an attribute, 'border'.

<frameset> does not have an attribute, 'border' or 'frameborder'.

That said, IE and NN tend to recognize either attribute on either element.

The frame element is deprecated in html4.01 strict. An html4.01 transitional DTD or html4.01 frameset DTD or xhtml1 frameset DTD must be used.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

ian
ian's picture
Offline
Enthusiast
South Carolina
Last seen: 18 years 13 weeks ago
South Carolina
Timezone: GMT-5
Joined: 2004-11-08
Posts: 103
Points: 0

Frameborder hiding

Quote:
Frameborder is an attribute of <frame>. Allowed values are "yes|no" or "1|0". <frame> does not have an attribute, 'border'.

<frameset> does not have an attribute, 'border' or 'frameborder'.

That said, IE and NN tend to recognize either attribute on either element.

Hmm.. I gues so. I looked it up at W3schools.com and kk5st is correct from what I can tell. But, the solution that I gave has worked for me in the past. . . . although, I must admit that I haven't always validated.

-clever quote at the bottom of my post-

Grador
Offline
newbie
Last seen: 17 years 51 weeks ago
Joined: 2005-02-15
Posts: 2
Points: 0

So how ?

I said in first message that frameset CAN NOT have border, nor frameborder tag, only tags allowed there are 'rows' and 'cols'. I know that it works when I put them there, but the page can't be validated. So I want to hear solution which works AND is correct (can be validated). Anybody knows something about that ?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 4 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Frameborder hiding

Careful with your tone please Grador .

This is a forum for matters concerning CSS Style Sheets, so a question regarding Framesets doesn't really fit in 'Beginners css' I will move it to 'Off Topic' for you.

A little patience with the members helping you out I'm sure they will answer your question fully and to your complete satisfaction in due course

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me