Name
HEIGHT, WIDTH — NN 2 IE 3 HTML n/a
Synopsis
HEIGHT=”length"WIDTH=”length"Required
The size that an embedded object (or its plugin control panel)
occupies in a document is governed by the HEIGHT
and WIDTH attribute settings. Some browser
versions might allow you to get away without assigning these
attributes, letting the plugin’s own user interface design
determine the height and width of its visible rectangle. It is best
to specify the exact dimensions of a plugin’s control panel
whenever possible. (Control panels vary with each browser and even
between different plugins for the same browser.) In some cases, such
as Navigator 4 for the Macintosh, the control panel does not display
if you fail to supply enough height on the page for the control
panel. If you assign values that are larger than the actual control
panel, the browser reserves that empty space on the page, which could
interfere with your intended page design.
Example
<EMBED SRC="jazz.aif" HEIGHT=150 WIDTH=250></EMBED>
Value
Positive integer values (optionally quoted) or percentage values
(quoted). You cannot entirely hide an embedded object’s control
panel by setting values to zero (one pixel always shows and occupies
space), but you can reduce its height and width to one pixel in each
dimension. If you want to hide a plugin, do so with DHTML by setting
its positioning display attribute to
none. Navigator also includes a
HIDDEN attribute that is backward compatible for
that browser brand.
Default
None.
Object Model Reference ...
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