|
24 Oct 2003, 17:48
|
#1
|
:cool:
Join Date: Jul 2001
Location: Here, there and everywhere
Posts: 791
|
HTML - Framesets
I am using framesets in HTML. Currently, my page looks as it is supposed to on all the browsers i've tested it on (IE 5.2, Safari 1.0, Mozilla 1.5 and Opera 6.03). Here is the code:
Code:
<frameset rows="141,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frameset rows="*,35" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="topframe.html" name="topFrame" scrolling="NO" noresize >
<frame src="linksframe.html" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<frameset rows="*" cols="163,*" framespacing="0" frameborder="no" border="0">
<frame src="leftframe.html" name="leftFrame" scrolling="NO" noresize>
<frame src="mainframe.html" name="mainFrame">
</frameset>
</frameset>
However, when I put the code through a validator I get the following errors:
Line 6, column 44: there is no attribute "FRAMEBORDER" (explain...).
Line 6, column 56: there is no attribute "BORDER" (explain...).
Line 6, column 73: there is no attribute "FRAMESPACING" (explain...).
So, I remove the offending code and it validates fine, but when I test the page it only looks like it's supposed to in IE. In Mozilla, Opera and Safari - the edges of the frames could be seen on the page. (As can be seen in these screenshots).
So, basically what I'm asking is what is the correct code to make the page appear like it does in IE - or should I not worry too much about perfect code, and leave the "offending attributes" in there?
__________________
Danger gleams like sunshine to a brave man's eyes.
|
|
|
24 Oct 2003, 19:05
|
#2
|
Henry Kelly
Join Date: Apr 2000
Posts: 7,374
|
Re: HTML - Framesets
Are you validating it as HTML 4.01 Frameset, or just Transitional or Strict or what?
__________________
You're now playing ketchup
|
|
|
24 Oct 2003, 19:16
|
#3
|
:cool:
Join Date: Jul 2001
Location: Here, there and everywhere
Posts: 791
|
Re: HTML - Framesets
Quote:
Originally Posted by pablissimo
Are you validating it as HTML 4.01 Frameset, or just Transitional or Strict or what?
|
Sorry, yeah I'm validating it as HTML 4.01 Frameset
__________________
Danger gleams like sunshine to a brave man's eyes.
|
|
|
24 Oct 2003, 20:11
|
#4
|
Henry Kelly
Join Date: Apr 2000
Posts: 7,374
|
Re: HTML - Framesets
Well for a start the HTML4.01 specs say that you can't have a FRAMEBORDER attribute in anything but a FRAME tag, whereas you've got it in a FRAMESET tag.
Also, the HTML4.01 Frameset specs make no mention at all of attributes called BORDER or FRAMESPACING.
__________________
You're now playing ketchup
|
|
|
24 Oct 2003, 20:22
|
#5
|
:cool:
Join Date: Jul 2001
Location: Here, there and everywhere
Posts: 791
|
Re: HTML - Framesets
Quote:
Originally Posted by pablissimo
Well for a start the HTML4.01 specs say that you can't have a FRAMEBORDER attribute in anything but a FRAME tag, whereas you've got it in a FRAMESET tag.
Also, the HTML4.01 Frameset specs make no mention at all of attributes called BORDER or FRAMESPACING.
|
Yeah I'm aware it's not valid HTML
What I'm asking is how can I make my page look the same as when I use the invalid HTML, but by using valid HTML
__________________
Danger gleams like sunshine to a brave man's eyes.
|
|
|
24 Oct 2003, 20:30
|
#6
|
Henry Kelly
Join Date: Apr 2000
Posts: 7,374
|
Re: HTML - Framesets
I should have read the whole post =((
Edit: try
body {
border: 0px;
}
in the CSS file of 'something' if you're allowed it
__________________
You're now playing ketchup
|
|
|
24 Oct 2003, 20:46
|
#7
|
:cool:
Join Date: Jul 2001
Location: Here, there and everywhere
Posts: 791
|
Re: HTML - Framesets
Quote:
Originally Posted by pablissimo
I should have read the whole post =((
Edit: try
body {
border: 0px;
}
in the CSS file of 'something' if you're allowed it
|
nope, that didn't work
I'm using CSS for the dotted line border in the left frame anyway, and the frame border appears slightly to the right of that.
__________________
Danger gleams like sunshine to a brave man's eyes.
|
|
|
24 Oct 2003, 20:57
|
#8
|
Henry Kelly
Join Date: Apr 2000
Posts: 7,374
|
Re: HTML - Framesets
Move the FRAMEBORDER attributes into the FRAME tags?
Though tbh if it renders in all the major browsers I'd leave it.
__________________
You're now playing ketchup
|
|
|
24 Oct 2003, 21:02
|
#9
|
:cool:
Join Date: Jul 2001
Location: Here, there and everywhere
Posts: 791
|
Re: HTML - Framesets
Quote:
Originally Posted by pablissimo
Move the FRAMEBORDER attributes into the FRAME tags?
Though tbh if it renders in all the major browsers I'd leave it.
|
Just tried that - the frameborders changed to white lines
I think i'll just leave it now, don't think any browser will have trouble rendering it tbh.
__________________
Danger gleams like sunshine to a brave man's eyes.
|
|
|
25 Oct 2003, 00:33
|
#10
|
Mr. Blobby
Join Date: Nov 2000
Location: Belgium
Posts: 8,271
|
Re: HTML - Framesets
Frames are crappy for a variety of reasons (inability to link to specific pages, people arriving on a sub-page and being unable to navigate, etc.) If you can in any way switch to a frameless layout, do so. If you do have a specific need for frames whatsoever that you simply can't get around, use <iframe> instead.
Edit: Decided to have a looksie anyway. It appears that all attributes other than 'rows' and 'cols' are deprecated for <frameset>, so there is no way to get a frameset without any border using valid (X)HTML. So if you do want to use frames without borders in between, you're going to have to be naughty and do this (also, there's no need for nesting in two framesets).
Code:
<frameset rows='141,35,*' border='0'>
<frame src='topframe.html' name='topFrame' scrolling='no' noresize='noresize'>
<frame src='linksframe.html' name='bottomFrame' scrolling='no'>
<frameset cols='163,*'>
<frame src='leftframe.html' name='leftFrame' scrolling='no' noresize='noresize'>
<frame src='mainframe.html' name='mainFrame'>
</frameset>
</frameset>
Last edited by Leshy; 25 Oct 2003 at 01:51.
|
|
|
25 Oct 2003, 17:52
|
#11
|
Registered User
Join Date: Jul 2000
Location: :noitacoL
Posts: 1,200
|
Re: HTML - Framesets
Quote:
Originally Posted by Leshy
Code:
<frameset rows="141,35,*" border="0">
<frame src="topframe.html" name="topFrame" scrolling="no" noresize="noresize">
<frame src="linksframe.html" name="bottomFrame" scrolling="no">
<frameset cols="163,*">
<frame src="leftframe.html" name="leftFrame" scrolling="no" noresize="noresize">
<frame src="mainframe.html" name="mainFrame">
</frameset>
</frameset>
|
fixed
|
|
|
25 Oct 2003, 18:37
|
#12
|
Mr. Blobby
Join Date: Nov 2000
Location: Belgium
Posts: 8,271
|
Re: HTML - Framesets
Quote:
Originally Posted by mbushell
fixed
|
Both " and ' are allowed and work equally well. I prefer '.
|
|
|
26 Oct 2003, 10:14
|
#13
|
Registered User
Join Date: Jul 2000
Location: :noitacoL
Posts: 1,200
|
Re: HTML - Framesets
single quotes look ugly in html i reckon
|
|
|
26 Oct 2003, 10:17
|
#14
|
Bitch
Join Date: Jun 2002
Location: North Yorkshire
Posts: 3,848
|
Re: HTML - Framesets
Frames are evil and should be banned. Not as banned as <blink> though!
__________________
ACHTUNG!!!
Das machine is nicht fur gefingerpoken und mittengrabben. Ist easy
schnappen der springenwerk, blowenfusen und corkenpoppen mit
spitzensparken. Ist nicht fur gewerken by das dummkopfen. Das
rubbernecken sightseeren keepen hands in das pockets. Relaxen und vatch
das blinkenlights!!!
|
|
|
26 Oct 2003, 13:24
|
#15
|
Mr. Blobby
Join Date: Nov 2000
Location: Belgium
Posts: 8,271
|
Re: HTML - Framesets
Quote:
Originally Posted by mbushell
single quotes look ugly in html i reckon
|
Personally, I feel single quotes look less intrusive. Especially when working with PHP it's more convenient to use single quote for HTML and double quotes for PHP values.
Quote:
Originally Posted by Gayle29uk
Frames are evil and should be banned. Not as banned as <blink> though!
|
Both <blink> and <marquee>. For some reason they've been added to Opera as well now
Last edited by Leshy; 26 Oct 2003 at 13:29.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
|
All times are GMT +1. The time now is 14:13.
| |