Click to See Complete Forum and Search --> : Getting rid of iFrame borders


gsb
06-20-2003, 07:40 PM
Is there a simple CSS to eliminate/change iFrame borders?

Thanks.

iggypop
06-21-2003, 12:21 AM
is it going to run in netscape 4.x?

PeOfEo
06-21-2003, 01:03 AM
why couldn't you just use the html attribute. Border="0".

Charles
06-21-2003, 04:30 AM
Originally posted by PeOfEo
why couldn't you just use the html attribute. Border="0". Because the IFRAME element doesn't have a "border" attribute. It does, however, have a "frameborder" attribute. See http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example</title>
<iframe src="http://www.w3.org/" frameborder="0"><a href="http://www.w3.org/">http://www.w3.org/</a></iframe>

gsb
06-21-2003, 09:34 AM
Thanks all.

...and no, I no longer keep compatibility with netscape 4.x.

PeOfEo
06-21-2003, 12:26 PM
Originally posted by Charles
Because the IFRAME element doesn't have a "border" attribute. It does, however, have a "frameborder" attribute. See http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME.
Awww you know what I mean.

pyro
06-21-2003, 11:01 PM
Originally posted by PeOfEo
Awww you know what I mean. How would he? border and frameborder are two very different things...

PeOfEo
06-22-2003, 12:00 AM
well when hes refering to an iframe, that only has frameborder. There is no border attribute, I just was not thinking. But because their is no border attribut but rather frame border, one shoudl probably assume thats what I meant.