Name
BORDER — NN n/a IE 4 HTML n/a
Synopsis
BORDER=”pixelCount"
Optional
Theory and practice of IFRAME
element borders in
Internet Explorer 4 diverge a lot, especially when trying to match
behaviors across operating systems. IE 4 for the Macintosh displays
IFRAME
elements with a 3-D effect around the
border that is always visible, no matter what border attribute
settings are assigned. For the Windows 95 version, the 3-D effect
goes away when you turn off the FRAMEBORDER
attribute. As for the BORDER
attribute, the size
of the border acts as a margin setting in IE 4/Mac, but only for the
top and left edges of the frame space: content is displaced to the
right and down by the border size, causing the content to flow over
the right and bottom edges—quite a mess. The
BORDER
attribute setting appears to have no effect
in Windows 95. In no case does the border around an
IFRAME
look like a FRAME
element border in IE 4.
That the HTML 4.0 specification does not include a
BORDER
attribute might lead one to believe it
prefers the use of style sheet borders, instead of borders tied only
to frames. If you want a genuine border around an
IFRAME
element in IE 4, use a style sheet border
instead. Its behavior is far more consistent and predictable (and is
thoroughly unrelated to nonfunctioning style sheet borders for frames
defined by a FRAMESET
).
Example
<IFRAME SRC="quotes.html" WIDTH=150 HEIGHT=90 BORDER=10></IFRAME>
Value
A positive integer value.
Default
0
Object Model Reference
- IE
[window.]document. ...
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.