473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

CSS Frameset Borders

Hello,

I am in the process of trying to make some existing web pages comply with
W3C's HTML 4.01 Recommendation ('strict' where possible, 'loose' where
not -- i.e. when using framesets and, hence, the 'target' attribute of the
<a> tag...)

I have so far been unsuccessful in finding a compliant equivalent of the
'border' attribute of the <frameset> tag.

<frameset border="0"....>
<frame frameborder="0"...>

produces frames without borders, but W3C's validator says that there is no
attribute 'border'.

Attempting to use CSS instead, the following seem to have no effect:

frameset
{
border-width: 0px; -AND/OR-
border-style: none; -AND/OR-
border-style: hidden; -AND/OR-
border-collapse: collapse; -whatever THAT means-
}

but all leave me with a narrow two- or three-pixel (ish) border that can
only be described as tenacious.

Does anyone know how to achieve the equivalent of <frameset border="0"...>
using CSS to produce something W3C compliant?

If it makes any difference, I'm viewing my attempts using IE6.

Thank you.
A.
Jul 20 '05 #1
13 52120
"Andrew C." <re**************@andrewcornes.com.remove> wrote in message
news:28******************************@news.teranew s.com...
Hello,

I am in the process of trying to make some existing web pages comply with
W3C's HTML 4.01 Recommendation ('strict' where possible, 'loose' where
not -- i.e. when using framesets and, hence, the 'target' attribute of the
<a> tag...)

I have so far been unsuccessful in finding a compliant equivalent of the
'border' attribute of the <frameset> tag.

<frameset border="0"....>
<frame frameborder="0"...>

produces frames without borders, but W3C's validator says that there is no
attribute 'border'.


<frameset>
<frame frameborder="0">
</frameset>

That should do it. Also, you'll probably want to be validating the page
that contains the frameset with the Frameset DTD.

Regards,
Peter Foti
Jul 20 '05 #2
Els
Andrew C. wrote:
Hello,

I am in the process of trying to make some existing web pages comply with
W3C's HTML 4.01 Recommendation ('strict' where possible, 'loose' where
not -- i.e. when using framesets and, hence, the 'target' attribute of the
<a> tag...)

I have so far been unsuccessful in finding a compliant equivalent of the
'border' attribute of the <frameset> tag.

<frameset border="0"....>
<frame frameborder="0"...>

produces frames without borders, but W3C's validator says that there is no
attribute 'border'.

Attempting to use CSS instead, the following seem to have no effect:

frameset
{
border-width: 0px; -AND/OR-
border-style: none; -AND/OR-
border-style: hidden; -AND/OR-
border-collapse: collapse; -whatever THAT means-
}

but all leave me with a narrow two- or three-pixel (ish) border that can
only be described as tenacious.

Does anyone know how to achieve the equivalent of <frameset border="0"...>
using CSS to produce something W3C compliant?

If it makes any difference, I'm viewing my attempts using IE6.


There is no attribute border for frameset, but you won't
need it when using frameborder="0" on the frames, not the
frameset.
The white 'borders' you're still seeing, is the
framespacing, which can be set to "0" and should be applied
to the framesets, but unfortunately isn't valid under 4.01 :-(

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #3
<frameset>
<frame frameborder="0">
</frameset>

That should do it. Also, you'll probably want to be validating the page
that contains the frameset with the Frameset DTD.


Unfortunately, this doesn't work -- I still get that two- or three-pixel
border without a 'border=0' in the <frameset> tag.

A.
Jul 20 '05 #4
The white 'borders' you're still seeing, is the
framespacing, which can be set to "0" and should be applied
to the framesets, but unfortunately isn't valid under 4.01 :-(


As you say, using <frameset framespacing="0"...> works as well as <frameset
border="0"...> but neither of them are 4.01-compliant. So, unless I find an
alternative that is compliant, I may as well stick with 'border': it's less
typing! ;)

A.
Jul 20 '05 #5
"Andrew C." <re**************@andrewcornes.com.remove> wrote in message
news:d5******************************@news.teranew s.com...
<frameset>
<frame frameborder="0">
</frameset>

That should do it. Also, you'll probably want to be validating the page
that contains the frameset with the Frameset DTD.


Unfortunately, this doesn't work -- I still get that two- or three-pixel
border without a 'border=0' in the <frameset> tag.


Ah, correct you are. This seems to be the case in all of the major
browsers, including Mozilla. My suggestion would be to avoid frames, but if
that's not an option for you, then I would suggest letting your frameset
document be invalid by adding the border="0" attribute to the frameset, and
then making sure that all of the documents contained within frames are valid
(note that the framespacing attribute does not seem to work for Netscape 4,
which is why I suggest the border attribute). I don't *think* there is a
CSS solution for this.

Regards,
Peter Foti
Jul 20 '05 #6
Ivo
"Andrew C." <re**************@andrewcornes.com.remove> wrote in message
news:19******************************@news.teranew s.com...
The white 'borders' you're still seeing, is the
framespacing, which can be set to "0" and should be applied
to the framesets, but unfortunately isn't valid under 4.01 :-(
As you say, using <frameset framespacing="0"...> works as well as

<frameset border="0"...> but neither of them are 4.01-compliant. So, unless I find an alternative that is compliant, I may as well stick with 'border': it's less typing! ;)

A.


I still have to see the light why validation is so important, what the whole
DOCTYPE circus is good for. If you want, you can add a few lines to a custom
dtd defining border and frameborder and any other attributes you fancy, so
that your frames *will* validate. See
http://htmlhelp.com/tools/validator/customdtd.html
In my view, a site validates if a user can see it in his browser.
HTH
Ivo
Jul 20 '05 #7
In article <40***********************@news.wanadoo.nl>, no@thank.you
enlightened us with...

I still have to see the light why validation is so important, what the whole
DOCTYPE circus is good for.


I think it's to make sure your site "behaves" in browsers other than the
IE/Netscape popular browsers.
There's a shitload of browsers out there I'd never even heard of until I
saw them mentioned on Usenet.

Then of course, there's the questions like "why doesn't my page work"
and then you go validate it and the html is horrendous. :)

--
--
~kaeli~
Is it true that cannibals don't eat clowns because they
taste funny?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #8
Ivo:
In my view, a site validates if a user can see it in his browser.


Is it enough if all users _today_ can see the site in their browsers?

Or do you care about the users (and the browsers) of next year, and the
year after that, as well?

How do you know all users can see the site in their browsers?

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #9
Ivo
"Bertilo Wennergren" <be******@gmx.net> wrote in message
news:c1*************@news.t-online.com...
Ivo:
In my view, a site validates if a user can see it in his browser.
Is it enough if all users _today_ can see the site in their browsers?

Or do you care about the users (and the browsers) of next year, and the
year after that, as well?


Yes, o very much. That 's exactly why all that "content" out in the open
must be looked after continuously and updated to reflect new standards or
become ...old.
Technology changes and I am convinced the browser of tomorrow will be able
to detect the type of document without a !DOCTYPE. Less is more. I also have
no doubt it will be able to render a font tag even though the standard tells
otherwise.
I am no enemy of standards, but have never understood what this
tag-to-end-all-tags was supposed to *do* except validate. As soon as soon as
browser sniffing was invented, browser spoofing was invented, as soon as
doctypes were invented, quirksmode was invented. I read on another
developer's site: suddenly twice as many browsers to test my pages in! That
's more or less the opposite effect of what a standard is supposed to
achieve, isn't it?
How do you know all users can see the site in their browsers?
A w3c standard is no guarantee. Being indexed by our friend the Googlebot
is, yet another kind of validation.
Yours conformistically,
Ivo
--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>



Jul 20 '05 #10
Ivo:
"Bertilo Wennergren" <be******@gmx.net> wrote in message
news:c1*************@news.t-online.com...
Ivo:
> In my view, a site validates if a user can see it in his browser.
Is it enough if all users _today_ can see the site in their browsers? Or do you care about the users (and the browsers) of next year, and the
year after that, as well? Yes, o very much. That 's exactly why all that "content" out in the open
must be looked after continuously and updated to reflect new standards or
become ...old.
Would it be better to make the content future safe without the need for
continuous maintenance - as far as possible? If you make sure you're
code is valid, there's much less risk that you'll have to redo the code
when new and better browsers appear. It's not fail-safe, but it's a very
good start.
Technology changes and I am convinced the browser of tomorrow will be able
to detect the type of document without a !DOCTYPE. Less is more. I also have
no doubt it will be able to render a font tag even though the standard tells
otherwise.
Probably. But that does not go for each and every mistake that makes you
code invalid. It's has happend before that pages that used to work in
browsers, stopped working when a new and more standards compliant
version of a browser came out.
I am no enemy of standards, but have never understood what this
tag-to-end-all-tags was supposed to *do* except validate. As soon as soon as
browser sniffing was invented, browser spoofing was invented, as soon as
doctypes were invented, quirksmode was invented. I read on another
developer's site: suddenly twice as many browsers to test my pages in! That
's more or less the opposite effect of what a standard is supposed to
achieve, isn't it?
I think you're mixing a lot of different things in the same pot in a
very confused way.

Don't sniff. Use the latest (and strictest) HTML version that works in
major browsers. Make sur you trigger standards mode. Validate. Test in
the major browsers (including Lynx). If anything gives problems,
simplify. Stay valid. What more do you want?
How do you know all users can see the site in their browsers?

A w3c standard is no guarantee.


Indeed. But using only valid code is the closest surrogate we have for
testing on tomorrows browsers. Using invalid code is very risky, even
when it happens to work in today's browsers.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #11
Ivo
"Bertilo Wennergren" <be******@gmx.net> wrote in message
news:c1*************@news.t-online.com...
Ivo:
"Bertilo Wennergren" <be******@gmx.net> wrote in message
news:c1*************@news.t-online.com...
Ivo:

Technology changes and I am convinced the browser of tomorrow will be
able to detect the type of document without a !DOCTYPE. Less is more.
I also have no doubt it will be able to render a font tag even though
the standard tells otherwise.


Probably. But that does not go for each and every mistake that makes
you code invalid. It's has happend before that pages that used to work in
browsers, stopped working when a new and more standards compliant
version of a browser came out.


Mistakes in the code are made. Some mistakes make a page not pass 'the
validation test', some mistakes leave a page blank for the human eye, some
mistakes cause a search engine spider to misinterpret a site, and the common
goal is to make those mistakes overlap eachother more and more in our
understanding, defining and engineering of an Internet technology as
undemanding as possible, where even the most messy markup can be accessed
and interpreted.
I am no enemy of standards, but have never understood what this
tag-to-end-all-tags was supposed to *do* except validate.

(...) Use the latest (and strictest) HTML version that works in
major browsers. Make sur you trigger standards mode. Validate. Test in
the major browsers (including Lynx). If anything gives problems,
simplify. Stay valid. What more do you want?
I want to be able to fill my HTML with embeds, bgcolors and -like the OP-
frameborders, and other stuff that is simply ignored by browsers unless it
understands it and when I am happy with the result, seeing that the page
gets visited by both bots and humans, be able to say that my code is valid.
My point is merely I find the Validation thing often overrated in
discussions here as it has restricted our freedom more than anything else
and it will never replace that final test: the real validation does not take
place until a human sees the page. If it is a ten year old document, the
human (and a good browser) will be prepared for some old-fashioned wording.
Ivo
--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>

Jul 20 '05 #12
Ivo:
"Bertilo Wennergren"
Use the latest (and strictest) HTML version that works in
major browsers. Make sur you trigger standards mode. Validate. Test in
the major browsers (including Lynx). If anything gives problems,
simplify. Stay valid. What more do you want?

I want to be able to fill my HTML with embeds, bgcolors and -like the OP-
frameborders, and other stuff that is simply ignored by browsers unless it
understands it and when I am happy with the result, seeing that the page
gets visited by both bots and humans, be able to say that my code is valid.
Then make a carefully crafted custom DTD that includes the additional
stuff you need, and use the validator to control that you've correctly
followed the rules you've set up for yourself.
My point is merely I find the Validation thing often overrated in
discussions here as it has restricted our freedom more than anything else
and it will never replace that final test: the real validation does not take
place until a human sees the page.


Of course validation can't replace testing in actual browsers, and with
actual humans. I don't think anyone seriously advocates anything else.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #13
I just wrote:
Ivo:
My point is merely I find the Validation thing often overrated in
discussions here as it has restricted our freedom more than anything else
and it will never replace that final test: the real validation does not take
place until a human sees the page.

Of course validation can't replace testing in actual browsers, and with
actual humans. I don't think anyone seriously advocates anything else.


Well, that didn't come out right. I meant:

Of course validation can't replace testing in actual browsers, and with
actual humans. I don't think anyone seriously advocates that it can.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Wallace | last post by:
I have a frameset with a nested frameset, like follows: frameset frame frameset frame frame Now, my problem is that even though I set the border, frameborder and framespacing to zero, I...
3
by: Jun | last post by:
How can I catch onMouseDown event on a frame/frameset? When I right mouse click at the border area of a frame, I can still get the Window's standard popup menu. How can I catch the mouse click...
1
by: Manu | last post by:
Hello, i don't arrive to find a alternative for no border between 2 frame ! with IE no problem i use : framespacing="0" but for W3C how do ? Here my sample code : <!DOCTYPE HTML PUBLIC...
0
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up a print-friendly stylesheet (print.css) for a website which is built as a frameset (made up of a top and bottom frame). When going to File/Print Preview in IE6, bevelled margins...
0
by: Andy Fish | last post by:
Hi, I have a simple frameset with a banner across the top and a menu down the side like this: <frameset rows="75,*"> <frame name="banner" noresize > <frameset cols="220,*"> <frame...
8
by: Steel | last post by:
hi at all, can I include into a css file some frame and frameset propertyes like border=0? How? thank in advance Steel
3
by: Mark | last post by:
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...
1
by: Glen Vermeylen | last post by:
Hi, For a project at school we have to automate the assignment of seats in classrooms to students during the exams. The lady who previously did everything manually kept the layouts of the...
2
satchmo67
by: satchmo67 | last post by:
Howdy, I want to reply to a really old post on this subject. The original poster was battling with the problem of trying to validate a frameset page and use the border attribute. I have been down...
2
by: nicstel | last post by:
Hello, I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.