Positioning Objects/text/swriter/guide/anchor_object.xhpobjects;anchoring optionspositioning;objects (guide)anchors;optionsframes;anchoring optionspictures;anchoring optionscentering;images on HTML pages
Positioning Objects
An object, such as an image or frame, is positioned within a document using an anchor attached to another element.An anchor determines the reference point for an object. The reference point could be the page or frame where the object is, a paragraph, or even a character. An object always has an anchor.An anchor moves with the element it is attached to as the document is edited. An object retains its position relative to the reference point determined by its anchor, such that, whenever the reference point moves or changes, the object moves relative to it.The following anchoring options are available:
AnchoringEffectAs characterAnchors the selected object as a character in the current text. If the height of the selected object is greater than the current font size, the height of the line containing the object is increased.To center an image on an HTML page, insert the image, anchor it "as character", then center the paragraph.To characterAnchors the selected object to the paragraph that contains the character to which the anchor is attached. The reference point for the object is the start of the paragraph that contains the character.For example, if you split the paragraph at a point before the anchor, the reference point moves to the start of the new paragraph and the object moves relative to that point. If you join the paragraph to the one before it, the reference point moves to the start of the combined paragraph and the object moves to a position relative to that.To paragraphAnchors the selected object to the current paragraph.To pageAnchors the selected object to the current page.To frameAnchors the selected object to the surrounding frame.
Objects can only be positioned on the page where their anchor is located.
Moving an Anchor
When you insert a shape, textbox, OLE object, image, or frame in your document, an anchor icon appears where the object is anchored. You can move an anchor or, keeping other object constraints in mind, position an object relative to the anchor's reference point by dragging the object.
Changing an Anchor
To change the anchoring options of an object, right-click the object, and then choose an option from the submenu.