element()
Used to copy a running element into a margin box.
Elements taken out of their natural place using position: running(name);
are referenced as content: element(name);
in running headers. A running element can hold one element, including its pseudo-elements and its descendants. Unlike string()
, element()
cannot be combined with any other values.
A running element inherits through its normal place in the document.
The required first value is the name of the running element.
@top-left { /* Title in left-hand page header. */ content: element(Title); }
If multiple elements on one page each set the value of a running element, then the running element may have several values on that page. The optional second argument of element()
specifies which of the possible values to use.