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
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.