Name
BORDER — NN 4 IE 4 HTML n/a
Synopsis
BORDER=pixels
Optional
Navigator and Internet Explorer treat images displayed by the
INPUT element very much like IMG elements. As
such, you can specify a border around the image. Navigator displays
one by default. Because an INPUT element whose
TYPE attribute is "image" acts
as a submit-style button, the border is rendered in the
browser’s link colors. If you want a different color for a
plain border, use style sheets (with the appropriate
DIV or SPAN wrapper for
Navigator 4). You can eliminate the colored border altogether in
Navigator by setting the BORDER attribute size to
zero.
Input Types
image
Example
<INPUT TYPE="image" NAME="icon" SRC="sndIcon.gif" BORDER=0>
Value
Any integer pixel value.
Default
2 (Navigator 4) or 0 (Internet
Explorer 4).
Object Model Reference
- IE
[window.]document.formName.inputName.border
[window.]document.forms[i].elements[i].border
[window.]document.all.elementID.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