border: ***;
Browser |
|
---|
The border property sets the border of an element.
The border of the iframe can be specified by applying this property to the IFRAME element.
iframe {
border: 2px red solid;
}
Property | Value | Explanation |
---|---|---|
border | each value | sets width, color, and style |
Screen shots of examples
iframe { border: 2px red solid; }
MSIE | Firefox | Opera |
---|---|---|
In MSIE, the default border is displayed around the iframe at the same time. If you doesn't want to display this default border, specify the frameborder attribute for the IFAME element.
<iframe src="example.html" frameborder="0"></iframe>
(MSIE)