Name
ALIGN — NN 2 IE 3 HTML 3.2
Synopsis
ALIGN=”alignmentConstant"Optional
The ALIGN attribute determines how the rectangle
of the applet aligns within the context of surrounding content. See
Section 8.1.5 earlier in this chapter
for description of the possibilities defined in both Navigator and
Internet Explorer for this attribute. Only a subset of the allowed
constant values is specified in the HTML recommendation. Although
Navigator included this attribute in Version 2, only
BOTTOM, LEFT,
RIGHT, and TOP were implemented
in that version.
Both browsers follow the same rules on laying out content surrounding
an applet 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.
Example
<APPLET CODE="simpleClock.class" NAME="myClock" ALIGN=ABSMIDDLE WIDTH=400 HEIGHT=50></APPLET>
Value
Case-insensitive constant value.
Default
bottom
Object Model Reference
- IE
[window.]document.applets[i].align
[window.]document.appletName.align
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