EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

widows property

Sets or retrieves the minimum number of lines of a paragraph that must appear at the top of a document.

CSS 2.1, Section 13.3Internet Explorer 8

 

Syntax

widows: integer

Property values

integer

A VARIANT that specifies or receives the minimum number of lines to print at the top of a document.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

This property applies when the document is printed. If there are fewer lines than necessary to satisfy this rule, the lines are moved to the following document. The widows property has precedence over the orphans property.

This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.

Examples

The following style rule ensures that at least three lines of a paragraph appear at the bottom and top of each printed document.


<meta http-equiv="X-UA-Compatible" content="IE=8" />
<style type="text/css">
@media print {
    p {
        widows:3;
        orphans:3;
    }
}
</style>

See also

CSSStyleDeclaration
currentStyle
runtimeStyle
style
orphans

 

 

Anzeigen:
© 2014 Microsoft