|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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 |
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 09:28 AM.
[
RSS ]








