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