navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

CSS frames?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> CSS frames?
Page: [1]
 
Guest


 
CSS frames? - 4/1/2004 10:20:17   
While validating my index.htm file I always get error messages about using frameborder, border or framespacing. I was wondering why? What should I be using. The following is the source & the errors reported. I posted this in the CSS category because someone told me:

"You need to use CSS for the style directives. Once you use CSS to set classes etc. you won't get those errors...." ~ Someone

What is he talking about?

--------errors----------

... 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)

---------index.htm source abridged-------------------

<!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>
Giomanach

 

Posts: 6075
Joined: 11/19/2003
From: England
Status: offline

 
RE: CSS frames? - 4/1/2004 10:29:53   
quote:

"You need to use CSS for the style directives. Once you use CSS to set classes etc. you won't get those errors...." ~ Someone

What is he talking about?

He's right, but he's not talking about Frames, he's talking about the content within the pages.

With the frames, you missed a quotation mark:

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

You can use CSS to configure the borders etc:

frame{
border: 0px;
}

M wil soon start shouting if I'm wrong

BTW Welcome to Outfront

Dan

_____________________________




(in reply to Guest)
Guest


 
RE: CSS frames? - 4/1/2004 11:24:33   
The idea is interesting, setting:

frame{
border: 0px;
}

The only problem is that according to TopStyle Pro this doesn't exist. Sure the border option does but not the frame. I did try this and it didn't do anything. Basically the only option that worked was border-style. So what is the real solution to removing the frameborder?

A little about my .htm files. They all link to an external .css file, so all I did was add the above to that. I also linked the index.htm to it temporarily to test the thing. That didn't work. I'm not sure what the deal is with CSS & frames.

(in reply to Guest)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/1/2004 11:33:56   
Hi Sderenzi, Welcome to the family!

did you try doing a google on this one? I'm not familar with frames myself. I'm actually not a fan of them.:)

I'll see what I can find out for you in the mean time.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Guest)
caz

 

Posts: 3468
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: CSS frames? - 4/1/2004 12:47:41   
Elizabeth Castro's book: HTML for the world wide web: with XHTML and CSS. 5th ed,2003. has a whole chapter devoted to frames, although she does say that the W3C "discourages the use of frames".

Her website may be of some help

http://www.cookwood.com/html5ed/examples/#c15

I don't use them either - but best of luck.

Carol

< Message edited by caz -- 4/1/2004 17:50:06 >


_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to c1sissy)
Guest


 
RE: CSS frames? - 4/1/2004 13:24:26   
Wow! I am not an expert on HTML or anything but yall sound kinda silly. For instance:

Of course I searched the internet for info. on this topic. I would not have wasted time posting it unless I needed someone to answer it. What I'm dealing with here is an HTML Validator telling me not to use the attribues, frameborder, border or framespacing in my index.htm. I'm using CSS but don't have any within my index.htm. It seems the issue must be related to my DOCTYPE declaration but I have the right one. Say I do add the above lines to my index.htm the border goes away just like it should, but this is all about finding the right way to do it. I hate google, I use teoma.com to search the net. I found so much material on HTML frames, but this seems to be something not mentioned. Certainly the advice about setting the frameborder using CSS sounds right, but it didn't work. Whatever the reason :-)~

A book won't do any good either because this is so specific to my source it'd be useless. How do you think I even began making my website anyhow? Through Dynamic HTML & CSS by Dave Taylor. Then other materials. So any real advice?

(in reply to Guest)
Donkey

 

Posts: 3842
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: CSS frames? - 4/1/2004 13:46:10   
quote:

So any real advice?
Learn some manners>

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to Guest)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/1/2004 13:56:50   
quote:

With the frames, you missed a quotation mark:

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


As Dan so kindly pointed out you are missing a quotation mark. as he shows you in the above quote. Have you tried to fix this?

Believe it or not, something missing like a quote will make your validation not come out as you wish it to. IT will show an error. And if you look at your validation that you have shown us in your first post, it shows that the quotation is missing from the code.

So at this point, the error is telling you that you are incorrect with what you have.
quote:

border="0
quote:

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


At this point, until you try the fix offered, I think that valid information has been offered to you:)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Guest)
Guest


 
RE: CSS frames? - 4/1/2004 14:44:30   
Forgive me for smiling at the previous comment about adding a quotation mark. You need to understand any real validator for HTML would naturally have told me about the error, and so then you should assume logically that it was a mistake in the posting and not the actual source file. TidyGUI tells you if a tag like that missing, and let's not forget the index.htm is so small it isn't even a question of not noticing the missing quotation. It wouldn't matter anyway because I can't use those attributes according to the validator. That means they aren't even in my index.htm now. And as I said adding them makes it simply say they aren't valid attributes.

The point of the matter is this gets sillier by the minute because I haven't the slightest idea of how to correctly implement the option I'd like. Rest assured I did however notice the missing quotation.

(in reply to Guest)
d a v e

 

Posts: 4010
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: CSS frames? - 4/1/2004 14:52:12   
also if you'd clicked on the 'explain' link in the validator report you would have seen that border and frame spacing aren't supported in html 4.01
you could try making a class {border:0;) and apply that to the frameset

you could also try being more polite as well, forum users give up their time to try and help people, but we don't owe you anything

also you might consider not using frames as they are fraught with problems, but if you choose to then try the above, obviously you'll need to remove the offending attributes (frame spacing and border) you might also need to set the margins to zero in the body styles of each html doc in the frameset

_____________________________

David Prescott
Gekko web design

(in reply to c1sissy)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/1/2004 15:04:46   
quote:

You need to understand any real validator for HTML would naturally have told me about the error


Might I ask you which real validator you are using?

As far as I know the only one that is considered worth its weight in gold is the following
http://validator.w3.org/

Also for your information, I have had pages that have had quotation marks missing and that was the problem.

See it is a matter of crossing the t's and dotting the i's. You still need to make it understandable. :)

You might consider using the xhtml transitional dtd for the frameset.

And please, be kind and considerate while you are answering in here.

See here in the css forum our discussions have been that of learning together from whatever mistakes or errors we have in our code. And even though we might not know the answers, we do try to find them for people. If we don't know the answer, we try to find it for someone who asks.

Dave, thank you for your response. I did search for information on css and frames, but really didn't find too much on this. And have not had time to look through any of my books on this subject. Your answer is greatly appreciated:)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Guest)
jaybee

 

Posts: 13959
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: CSS frames? - 4/1/2004 15:36:37   
As you said in your last post...... you don't have the slightest idea. If you want the people on here to help you then I suggest you stop being such a smart alec and putting everyone's backs up.

If you don't think much of the advice on here then I suggest you go here

These people are the absolute experts... they wrote the standards.

< Message edited by jaybee -- 4/1/2004 20:40:22 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to c1sissy)
Guest


 
RE: CSS frames? - 4/1/2004 18:30:52   
The HTML Validators I am using are:

TidyGUI
CSE HTML Validator Retail
http://www.htmlhelp.com/tools/

As for the suggestions I am pleased with the link to http://www.w3schools.com/

Also d a v e there wasn't actually an explain option with any of the validators I was using. Naturally had there been I would've totally clicked and checked it out. As for the "you would have seen that border and frame spacing aren't supported in html 4.01
you could try making a class {border:0;) and apply that to the frameset". Thats essentially what I tried at the advice of Giomanach. border-style had an effect but the border attribute had none :-(

Hope this clears thing up a bit. I did figureout that HTML 4.01 didn't support the attributes but was hoping someone might suggest another method. There is one question I have now:

If I changed the HTML version from 4.01 to a lower one even though my .htm files in the frameset are 4.01 would this effect my site in any major way?

(in reply to Guest)
Guest


 
RE: CSS frames? - 4/1/2004 18:46:40   
Hi there everyone. I realized my question had turned into an HTML one rather than a CSS specific one. I therefore ask anyone interested in replying to visit the HTML category & seek out my revised question.

PS Thanks all for helping in whatever way you could, I shall endevour to invite you out for tea or a smoothie :-))

(in reply to Guest)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/1/2004 18:59:09   
quote:

PS Thanks all for helping in whatever way you could, I shall endevour to invite you out for tea or a smoothie :-))


MMMMM smoothies!

Watch out, spidy is rushing on her way for this one!:):):)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Guest)
Giomanach

 

Posts: 6075
Joined: 11/19/2003
From: England
Status: offline

 
RE: CSS frames? - 4/2/2004 2:46:45   
Smoothies - Better make mine an XXXL:)

I've given my fool-proof frames in t'other thread

Dan

_____________________________




(in reply to c1sissy)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: CSS frames? - 4/2/2004 13:22:44   
No Giomanach Mhaircaish won't start shouting because, a few days early, he is now far far away and has rather more pressing things to worry about than here.

To answer the question what none of you seem to have picked upon is that a frameset is just that a set of pages so to do this you need to do two things:

In the parent document:

frame {
border: none;
}

In the "child" documents:

html, body {
border: none;
}

Will do it. I know it will do it because on an intranet reference set that I run thats how Mhaircaish set it up for me.

sderenzi - use the w3c validators. They do have an explain function they also are the only "official" ones. W3C set the standards why pay money to rely on somebody else's interpretation of the standards.

TTFN

Fiachra

Now if only I can find my little black book with all MY passwords in it :)

< Message edited by gorilla -- 4/2/2004 13:32:06 >


_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to Giomanach)
d a v e

 

Posts: 4010
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: CSS frames? - 4/2/2004 13:43:44   
do i get half a point for
quote:

you could try making a class {border:0;) and apply that to the frameset


_____________________________

David Prescott
Gekko web design

(in reply to gorilla)
fiachra

 

Posts: 338
Joined: 5/12/2002
From:
Status: offline

 
RE: CSS frames? - 4/2/2004 14:20:03   
Found it. Of course I never thought to look where it should be .... :):) ... OK as the head gorilla is away I'll be generous on his behalf. Two honey coated dried banana chips are now yours.

_____________________________

www.peopleeatingtastyaliens.com

(in reply to d a v e)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/2/2004 14:59:34   
quote:

frame {
border: none;
}


OOOOO OOOOO OOO
In a private email I DID get this right!

Hi fiachra, good to see you in here. Ihope that all is well with you.

Hey Dave, yoooo daaavvvee, you need to share those banana treats with me, well after I get my pc fixed that is:)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to gorilla)
d a v e

 

Posts: 4010
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: CSS frames? - 4/3/2004 3:25:30   
maybe they will have gone of by the time you get your pc fixed - maybe it's safer if i just eat them when they arrive ;)

_____________________________

David Prescott
Gekko web design

(in reply to c1sissy)
fiachra

 

Posts: 338
Joined: 5/12/2002
From:
Status: offline

 
RE: CSS frames? - 4/3/2004 5:09:06   
Sorry, I polished them off with my coffee , just got a bit peckish ..... :)

_____________________________

www.peopleeatingtastyaliens.com

(in reply to d a v e)
d a v e

 

Posts: 4010
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: CSS frames? - 4/3/2004 5:19:19   
ahhh

_____________________________

David Prescott
Gekko web design

(in reply to fiachra)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/3/2004 9:40:25   
:):)

We need to teach you how to SHARE!:):)

Hey Dave, sniffle, computer is still crashing.:):)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to fiachra)
d a v e

 

Posts: 4010
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: CSS frames? - 4/3/2004 10:11:50   
well if i had some banana chips i would send you them all!

my computer crashes all the time, but i'm having it rebuilt soonish. It's a cyrix 333, 128 ram 20gb hardrive - i don't know how i get any thing done in dreamweaver and fireworks! still at least my firefox / moz /netcape work ;)

hope you get it sorted soon I know how frutrating it is. The other day i was using a programme written in java and had to reboot 8 times before it would work :(
it certainly puts a strain on my relationship with my girlfriend! she's caved in and said that i could upgrade/rebuild after i said i wouldn't do any more work otherwise...

btw have you checked your pc for stray banana chips/pizza/insects!

_____________________________

David Prescott
Gekko web design

(in reply to c1sissy)
c1sissy

 

Posts: 5079
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: CSS frames? - 4/3/2004 11:50:59   
quote:

btw have you checked your pc for stray banana chips/pizza/insects!

ROFLOL!
Now there is a thought!

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to d a v e)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> CSS frames?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts