Name
BORDER — NN all IE all HTML 3.2
Synopsis
BORDER=pixels
Optional
Navigator provides a dedicated attribute to specifying the thickness
of a border around an IMG
element. Default
rendering of the border is in black, but if the
IMG
element is wrapped inside an
A
element, the border takes on the
document’s various link colors (depending on link state). If
you want a different color for a plain border, use style sheets (with
the appropriate DIV
or SPAN
wrapper for Navigator 4). When a link surrounds the image, you can
eliminate the colored border altogether by setting the
BORDER
attribute size to zero.
Example
<IMG SRC="surferDude.gif" BORDER=3 HEIGHT=100 WIDTH=200>
Value
Any integer pixel value.
Default
0
Object Model Reference
- NN
[window.]document.imageName.border
[window.]document.images[i].border
- IE
[window.]document.imageName.border
[window.]document.images[i].border
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.