473,322 Members | 1,431 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,322 software developers and data experts.

CSS Frameset Borders

satchmo67
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 this very path some time ago and can answer!

Fact is you can't use the border attribute and also validate as a frameset, but you can work around it to achieve the outcome of validating your page and also killing the frame borders. A site I developed some time ago at http://www.mattman.com.au/ does just that.

If you look at the page source you will see that the frameset includes 7 frames, no border attributes (so it validates), but also does not display the borders.

What I did to achieve this was to use a re-framer JavaScript for the separate purpose of ensuring that no pages are shown without the rest of the frameset wrapped around it. From within the source you'll see that the re-framer script sits at http://www.mattman.com.au/reframer2.js, so take a peek. Apart from the JS functionality to re-frame, the script also repeats the frameset tags. But this time I included the border="0" attribute.

So when a JavaScript enabled browser displays this page it also reads the script and follows the border attribute within it. Of course the W3C validator doesn't read JavaScript, so it is happy to validate.

This is a work around, some might say a cheat. But it works. Of course the 10% of users who refuse to enable JavaScript will see the frame borders, but I figure this 10% of users are probably used to missing out on a lot of website functionality as their trade-off.

Now, with all of that said, I want to emphasis that my sample site is a few years old. I've now left frameset pages and moved on to using CSS fixed divs to create the illusion of frames. Much better, and my pages now validate as xhtml 1.1 (Gary Badger as an example).

I've only been a member here for as long as it has taken me to type this, so I hope my views on this are welcome.

Cheers,
Gary.
Aug 15 '06 #1
2 2713
Banfa
9,065 Expert Mod 8TB
All views are welcome, particularly when this informative :D
Aug 15 '06 #2
iam_clint
1,208 Expert 1GB
Yes, i never really work with frames so it was very informative to me. thanks
Aug 15 '06 #3

Sign in to post your reply or Sign up for a free account.

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...
13
by: Andrew C. | last post by:
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,...
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...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.