Name

STYLE — NN n/a IE 4 HTML 4

Synopsis

STYLE=”styleSheetProperties"

Optional

This attribute lets you set one or more style sheet rule property assignments for the current element. Styles affect the inline frame and not its content. Therefore, a border assigned to an IFRAME element style appears around the frame, not inside the frame.

Example

<IFRAME SRC="navbar.html" STYLE="border:solid blue 3px"></IFRAME>

Value

An entire CSS-syntax style sheet rule is enclosed in quotes. Multiple style attribute settings are separated by semicolons. Style sheet attributes are detailed in Chapter 10.

Default

None.

Object Model Reference

IE

[window.]document.frameName.style

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.