Name

ALIGN — NN all IE all HTML 3.2

Synopsis

ALIGN=”alignmentConstant"

Optional

Determines how the rectangle of the input image aligns within the context of the surrounding content. See Section 8.1.5 earlier in this chapter for a description of the possibilities defined in both Navigator and Internet Explorer for this attribute. Not all attribute values are valid in browsers prior to the Version 4 releases.

Both browsers follow the same rules on laying out content surrounding an image whose ALIGN attribute is set, but the actual results are sometimes difficult to predict when the surrounding content is complex. A thorough testing of rendering possibilities with browser windows set to various sizes prevents surprises later.

Input Types

image

Example

<INPUT TYPE="image" NAME="icon" SRC="icon.gif" ALIGN="absmiddle">

Value

Case-insensitive constant value. All constant values are available in Navigator 4 and Internet Explorer 4.

Default

bottom

Object Model Reference

IE

[window.]document.formName.inputName.align

[window.]document.forms[i].elements[i].align

[window.]document.all.elementID.align

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.