Name
HEIGHT, WIDTH — NN n/a IE 4 HTML n/a
Synopsis
HEIGHT=”length"WIDTH=”length"Optional
A MARQUEE element renders itself as a rectangular
space on the page. You can override the default size of this
rectangle by assigning values to the HEIGHT and
WIDTH attributes. The default value for
HEIGHT is determined by the font size of the
largest font assigned to content in the MARQUEE.
Default width is set to 100% of the width of the next outermost
container (usually the document BODY). The
WIDTH defines how much space is used at one time
or another by horizontally scrolling content. When the
MARQUEE is embedded within a TD
element that lets the browser determine the table cell’s
calculated width, you must set the WIDTH of the
MARQUEE element or risk having the browser set it
to 1, making the content unreadable.
If you want extra padding around the space, see the
HSPACE and VSPACE attributes.
Example
<MARQUEE BEHAVIOR="slide" DIRECTION="left" HEIGHT=20 WIDTH=200> ... </MARQUEE>
Value
Any length value in pixels or percentage of available space.
Default
A width of 100%; a height of 12
pixels.
Object Model Reference
- IE
[window.]document.all.elementID.height
[window.]document.all.elementID.width
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