473,465 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS Frameset Borders

satchmo67
1 New Member
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 2734
Banfa
9,065 Recognized Expert Moderator Expert
All views are welcome, particularly when this informative :D
Aug 15 '06 #2
iam_clint
1,208 Recognized Expert Top Contributor
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...
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:
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...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.