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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access