AdamJSawyer
asked on
How to set border of frameset to 0 in CSS?
Hi,
I'm trying to set the border width of a framset to 0 in CSS, but can't work it out.
Tried {border-width: 0px}
but doesn't work
Can anyone help?
Thx
Adam
I'm trying to set the border width of a framset to 0 in CSS, but can't work it out.
Tried {border-width: 0px}
but doesn't work
Can anyone help?
Thx
Adam
ASKER
Yes I have to use CSS because FRAMEBORDER and BORDER attributes are not supported in the HTML validation.
Thanks
Adam
Thanks
Adam
ASKER
Yes I am, and I am still getting the error. My code for the DOCTYPE was slightly different to that listed at the w3 site, and I have changed it to match, and still get the following error:
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 10 column 31: there is no attribute "BORDER".
<frameset cols="175,*" border="0">
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 10 column 31: there is no attribute "BORDER".
<frameset cols="175,*" border="0">
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
ASKER
Here is the entire file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Brain Lumley Books - Online!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<frameset cols="175,*" border="0">
<frameset rows="139,*" border="0">
<!-- Top Left Logo -->
<frame src="TopLeftLogo.html" scrolling="no" marginwidth="0" noresize name="TLLogo">
<!-- Reviews Panel -->
<frame src="SidePanel.html" marginheight="10" marginwidth="0" noresize name="SidePanelFrame">
</frameset>
<frameset rows="75,64,*,70" border="0">
<!-- Brian Lumley Page Heading -->
<frame src="LumleyLogo.html" scrolling="no" marginheight="0" marginwidth="10" noresize name="LumLogo">
<!-- Image List for Book Reviews -->
<frame src="LumleyImList.html" scrolling="no" marginheight="0" marginwidth="10" noresize name="LumList">
<!-- Main viewing frame -->
<frame src="LumleyIntro.html" marginheight="10" marginwidth="20" noresize name="MainFrame">
<!-- Contact frame -->
<frame src="LumleyFooter.html" scrolling="no" marginheight="0" noresize name="LumContact">
</frameset>
</frameset>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Brain Lumley Books - Online!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<frameset cols="175,*" border="0">
<frameset rows="139,*" border="0">
<!-- Top Left Logo -->
<frame src="TopLeftLogo.html" scrolling="no" marginwidth="0" noresize name="TLLogo">
<!-- Reviews Panel -->
<frame src="SidePanel.html" marginheight="10" marginwidth="0" noresize name="SidePanelFrame">
</frameset>
<frameset rows="75,64,*,70" border="0">
<!-- Brian Lumley Page Heading -->
<frame src="LumleyLogo.html" scrolling="no" marginheight="0" marginwidth="10" noresize name="LumLogo">
<!-- Image List for Book Reviews -->
<frame src="LumleyImList.html" scrolling="no" marginheight="0" marginwidth="10" noresize name="LumList">
<!-- Main viewing frame -->
<frame src="LumleyIntro.html" marginheight="10" marginwidth="20" noresize name="MainFrame">
<!-- Contact frame -->
<frame src="LumleyFooter.html" scrolling="no" marginheight="0" noresize name="LumContact">
</frameset>
</frameset>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
At least I know where I stand now.
Cheers
Adam
At least I know where I stand now.
Cheers
Adam
Do you have to set the border in CSS? Using HTML you can just set the frameborder attribute to 0:
<frameset cols="120,*" frameborder="0">
</frameset>
I believe that most browers do not support the styling of frames.
Hope this helps!
Josh