Is there a simple CSS to eliminate/change iFrame borders?
Thanks.
is it going to run in netscape 4.x?
why couldn't you just use the html attribute. Border="0".
Originally posted by PeOfEo why couldn't you just use the html attribute. Border="0".
[font=georgia]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.[/font]
[font=nmonospace]<!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/">[url]http://www.w3.org/[/url]</a></iframe>[/font]
Thanks all.
...and no, I no longer keep compatibility with netscape 4.x.
Originally posted by Charles [font=georgia]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.[/font]
Awww you know what I mean.
Originally posted by PeOfEo Awww you know what I mean.
How would he? border and frameborder are two very different things...
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.