Name
ALIGN — NN all IE 4 HTML n/a
Synopsis
ALIGN=”where"
Optional
If the embedded object (or player control panel) occupies space on
the page, the ALIGN
attribute determines how the
object is rendered in physical relation to the element’s next
outermost container. If some additional text is specified between the
start and end tags of the EMBED
element, the
ALIGN
attribute also affects how that text is
rendered relative to the object’s rectangular space.
Most of the rules for alignment constant values cited at the
beginning of this chapter apply to the EMBED
element. Precise layout becomes difficult because the HTML page
author usually isn’t in control of the plugin control panel
that is displayed on the page. Dimensions for the element that work
fine for one control panel are totally inappropriate for another.
(Compare Netscape’s stocky audio control panel to the narrow
horizontal slider in Internet Explorer.)
Typically, ALIGN
attributes are deprecated in HTML
4.0 in favor of the align:
style sheet attribute.
But if you are using the EMBED
element for
backward compatibility, stick with the ALIGN
attribute.
Example
<EMBED SRC="jazz.aif" ALIGN="left" HEIGHT=100 WIDTH=200></EMBED>
Value
Each browser defines a different set of values for this attribute. Select the one(s) from the following table that work for your deployment:
Value |
NN 4 |
IE 4 | |
---|---|---|---|
absbottom |
- |
• | |
absmiddle |
- |
• | |
baseline |
- |
• | |
bottom |
• |
• | |
left |
• |
• | |
middle |
• |
• | |
right ... |
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.