Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old December 10th, 2002, 09:02 PM
Madge Madge is offline
Member
 
Join Date: Nov 2002
Location: Surrey, England, UK
Posts: 50
Question borders between frames

Hi everyone

I suspect this is a real old chestnut for you HTML buffs, so apologies if this is boring, but I have the irritating enthusiasm of a born-again XHTML convert.

I previously used this sort of code for framesets:

<frameset cols="176,*" border="0">

<frame src="navigation.htm" name="navigation" scrolling="auto" frameborder="0" marginwidth="0" marginheight="0" >

<frame src="main.htm" name="main"scrolling="auto" frameborder="0" marginwidth="0" marginheight="0">

</frameset>

and it worked just fine in MSIE 4,5 & 6 and Navigator 4 and 7.

But that mean old validator says "border" is not an accepted attribute for frameset.

Also that "marginheight" and "marginwidth" must exceed zero. The latter problem I can work round by inserting an otherwise unneeded pixel so they both equal "1" but I do not know how to replace "border="0".

I can abolish the visible 3D border between frames by inserting "frameborder="0" into each frame element, but this still leaves a vertical (1 pixel?) white line between frames.

I could remove this white line by inserting framespacing="0" into the frameset element but it is also an invalid attribute for frameset. In fact there are three or fours ways of getting what I want, but they are all invalid.

How can I remove my white line correctly? Or is there a better approach to the whole question?
__________________
Madge
Reply With Quote
  #2  
Old December 10th, 2002, 09:22 PM
Steven.Bentley Steven.Bentley is offline
CTH Subscriber
 
Join Date: Nov 2000
Location: West Yorkshire, UK
Age: 29
Posts: 3,840
The border attribute has been depreciated to be replaced by CSS, so

style="border:0"

you can set margins with CSS also, using margin:0 to mean all margins or margin-left etc to set just one.
__________________
Don't forget to post back with the results
Reply With Quote
  #3  
Old December 11th, 2002, 12:24 AM
Madge Madge is offline
Member
 
Join Date: Nov 2002
Location: Surrey, England, UK
Posts: 50
Unhappy borders between frames

Sorry Steven. I am being a bit dim here. I still cannot make it work.

Before I first posted I had already tried various things with border="0" or "0px" or "none", with border-width, border-style, and so on. And since your response I have had another try.

Should this value be inline or embedded in the document head or in the external stylesheet? I suppose this should not matter?

If inline or in the document head does it go into the frameset document or into each of the various frame documents? And is it an attribute of "body" or of "frame"?

If in the external stylesheet should I create a class (such as .frames) to hang it on, as I might not want all my borders to default to zero?

I am assuming my white line is a border property because I could (illicitly) remove it using "border" in the frameset.

As you can see I do not have much of a grip on this. This new validated religion is hard work. It was an easier life being sloppy.
__________________
Madge
Reply With Quote
  #4  
Old December 11th, 2002, 05:36 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,042
Blog Entries: 1
A framespacing is not a Valid Tag (not even in HTML4) you cannot remove the space.
__________________
Cheers,
Degs

Please post back with your results
CTH Terms of Use

CTH Subscriptions :: Adaware Guide :: HijackThis
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:28 AM.

[ RSS ]