Forum Moderators: open

Message Too Old, No Replies

Frameborder, border, and framspacing!

I ran a check using an HTML...

         

sderenzi

1:23 am on Apr 1, 2004 (gmt 0)



For my index file I keep getting error messages about using frameborder, border or framespacing. I was wondering why? What should I be using. The following is the index.htm files source & the error reported.

-----------------------------------------

... frameset cols="22,78" border="0 framespacing="0">

^Error: there is no attribute BORDER for this element (in this HTML version)

Error: there is no attribute FRAMESPACING for this element (in this HTML version)

-------------------------------------------

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

<html lang="en">
<head></head>
<frameset cols="22,78" border="0 framespacing="0">
<frame src="me.htm" name="Menu" noresize>
<frame src="ne.htm" name="Content">
</frameset>
</html>

vkaryl

3:14 am on Apr 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to use CSS for the style directives such as the ones you posted. Once you use CSS to set classes etc. you won't get those errors....

sderenzi

3:00 pm on Apr 1, 2004 (gmt 0)



Um, any example of what you mean would be helpful. I am not entirely sure to what you refer.

vkaryl

11:25 pm on Apr 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay - here's what I did, a real simple-so-you-get-an-idea sort of thing. Follows your original posted code for the frameset, with just one change; and then the one line CSS that makes it validate (it does - I checked.... and so does the CSS itself.)

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

<html>
<head>
<title></title>
</head>

<frameset cols="22,78" class="c1">
<frame src="me.htm" name="Menu" noresize>
<frame src="ne.htm" name="Content">
</frameset>

</html>

frameset.css:

.c1 {border:0px;}

"Framespacing" seems to be a "not allowed" class/style selector - at least I couldn't find anything on it in just a brief search. Those more familiar than I with CSS may be able to help out, though I do note that the frame setup doesn't change much "lookwise" with it left out - the "edge" area is a bit wider is all. There may be a way to take care of that with margin or padding selectors.

sderenzi

12:30 am on Apr 2, 2004 (gmt 0)



Well I get the idea now. I also get that you're saying this won't entirely remove the border. Point taken. I also went around asking alot of other people whom had not any idea. Thanks for the help with it, and also might you think it would be possible to create a border-style where the border didn't show up at all? A custom one?

vkaryl

12:37 am on Apr 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why don't you sticky me a URL to take a look at? Just upload what you're working on to a temp folder somewhere, borders are one thing I DETEST, so I've developed a "vision" for how to get rid of them anytime I can. Don't know why they ever got to be a "default" - whoever came up with THAT idea should be shot at dawn....

encyclo

12:48 am on Apr 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



frameborder, border or framespacing

If you're going to use frames, you are going to have to live with the validation error. As far as I know, you have to choose between validity and borders. Frames are the basket case of HTML: you have already ruined any chance of having an accessible site if you go down the frames route, so you might as well put up with the validation errors too. The errors are not what you'd call critical either.