position
Position
Typically indicates whether a display object (for example, figure, table, boxed text) must
be anchored in its exact location within the text or may float to a different location in the
document (for example: to the top of the next page, into the next column, within a separate window). Also
used to indicate that the display object should be placed in the margin or used as a background image behind the text.
Used on these Elements:
<boxed-text>, <chem-struct-wrap>, <code>, <fig>, <fig-group>, <graphic>, <media>, <preformat>, <supplementary-material>, <table-wrap>, <table-wrap-group>
Value | Meaning |
---|---|
anchor | The object must remain in its exact location in the text flow. |
background | The object (typically an image) is used as background displayed visually “behind” the narrative text. |
float | The object is not anchored and may be moved to a new column, a new window, a new page, the end of the document, etc. |
margin | In print, the object should be placed in the margin or gutter; online, the object should remain closely associated with the text. |
Default value | float |
Example 1
...
<boxed-text position="anchor" content-type="website">
<caption>
<title>Search term: gallstones</title>
</caption>
...
</boxed-text>
...
Example 2
... <alternatives> <media mime-subtype="mpeg" mimetype="video" orientation="portrait" position="anchor" specific-use="archival-format" xlink:href="v1"></media> <media mime-subtype="x-flv" mimetype="video" orientation="portrait" position="anchor" specific-use="online-format" xlink:href="v1"></media> </alternatives> ...
Example 3
...
<fig id="f1" orientation="portrait" position="float">
<graphic xlink:href="f1"/>
<attrib>Brookhaven National Laboratory</attrib>
</fig>
...
Example 4
...
<code
code-type="user interface control"
language="C++"
language-version="11"
xml:space="preserve"
orientation="portrait"
position="anchor">
#include <conio.h>
#include<win_mous.cpp>
// Needed for mouse & win functions#define
...
</code>
...