Forum Moderators: not2easy

Message Too Old, No Replies

frame { border: 0px; }

HTML Validator produces errors while using frameborder...

         

sderenzi

7:42 pm on Apr 1, 2004 (gmt 0)



Hello. My difficulty is whiel running a check on my index.htm file the online validator tells me that the attributes frameborder, border and framespacing are invalid as they are used. I was told recently that I had to set the border in CSS because that is what I'm using, the source was:

frame { border: 0px; }

The unusual thing is this produced no change, but when substituting border-style for border then a change was noticable. My problem is I don't wish to have any border, it should be gone & away! Because the suggestion above did not work and the validator insists I cannot use the 3 attributes to set the frameborder, what ever shall I do?

vkaryl

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

WebmasterWorld Senior Member 10+ Year Member



Hi sderenzi....

Try {border: none;} - I'm not sure why that would make a difference.... well, hmmm....

Is your menu and/or your content made up of graphics? If so, then you need img {border: none;} probably. Without seeing what you're loading into the frameset, it's hard to tell what's going on. If you want to sticky me the URL, I'll see if I can do better.... blind advice is usually worse than none at all!

DrDoc

1:46 am on Apr 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have to do two things:

In the parent document:

frame {
border: none;
}

In the child document:

html, body {
border: none;
}

vkaryl

2:16 am on Apr 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oy. Thanks Doc....

Lost track of those m'self - I REALLY need to NOT post except on weekends....

Sorry!

Rambo Tribble

2:32 am on Apr 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The border property requires specifications for border width, border style, and border color (or optionally, it can take a value of "inherit"). While some browsers will let you get away with ommitting one or more of the values, others are more strict, as is the validator.

[w3.org...]

grahamstewart

7:34 am on Apr 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



border[b]-style[/b]:none;
then :)