<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->

<meta>
  <topic id="textswriterguideanchor_objectxml" indexer="include" status="PUBLISH">
    <title id="tit" xml-lang="en-US">Positioning Objects</title>
    <filename>/text/swriter/guide/anchor_object.xhp</filename>
  </topic>
</meta>

<body>

<bookmark xml-lang="en-US" branch="index" id="bm_id3147828">
  <bookmark_value>objects;anchoring options</bookmark_value>
  <bookmark_value>positioning;objects (guide)</bookmark_value>
  <bookmark_value>anchors;options</bookmark_value>
  <bookmark_value>frames;anchoring options</bookmark_value>
  <bookmark_value>pictures;anchoring options</bookmark_value>
  <bookmark_value>centering;images on HTML pages</bookmark_value>
</bookmark>


<h1 id="hd_id3147828" xml-lang="en-US"><variable id="anchor_object"><link href="text/swriter/guide/anchor_object.xhp">Positioning Objects</link></variable></h1>
<paragraph id="par_id181634295881266" role="paragraph" xml-lang="en-US">An object, such as an image or frame, is positioned within a document using an anchor attached to another element.</paragraph>
<paragraph id="par_id41634291500513" role="paragraph" xml-lang="en-US">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.</paragraph>
<paragraph id="par_id3147251" role="paragraph" xml-lang="en-US">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.</paragraph>
<paragraph id="par_id441634291545244" role="paragraph" xml-lang="en-US">The following anchoring options are available:</paragraph>

<table id="tbl_id3147268">
  <tablerow>
    <tablecell>
      <paragraph id="par_id3145599" role="tablehead" xml-lang="en-US">Anchoring</paragraph>
    </tablecell>
    <tablecell>
      <paragraph id="par_id3145622" role="tablehead" xml-lang="en-US">Effect</paragraph>
    </tablecell>
  </tablerow>
  <tablerow>
    <tablecell>
      <paragraph id="par_id3145650" role="tablecontent" xml-lang="en-US">As character</paragraph>
    </tablecell>
    <tablecell>
      <paragraph id="par_id3151181" role="tablecontent" xml-lang="en-US">Anchors 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.</paragraph>
      <paragraph id="par_idN10674" role="tablecontent" xml-lang="en-US">To center an image on an HTML page, insert the image, anchor it "as character", then center the paragraph.</paragraph>
    </tablecell>
  </tablerow>
  <tablerow>
    <tablecell>
      <paragraph id="par_id3151212" role="tablecontent" xml-lang="en-US">To character</paragraph>
    </tablecell>
    <tablecell>
      <paragraph id="par_id3151235" role="tablecontent" xml-lang="en-US">Anchors 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.</paragraph>
      <paragraph id="par_id261634292505179" role="tablecontent" xml-lang="en-US">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.</paragraph>
    </tablecell>
  </tablerow>
  <tablerow>
    <tablecell>
      <paragraph id="par_id3155071" role="tablecontent" xml-lang="en-US">To paragraph</paragraph>
    </tablecell>
    <tablecell>
      <paragraph id="par_id3155094" role="tablecontent" xml-lang="en-US">Anchors the selected object to the current paragraph.</paragraph>
    </tablecell>
  </tablerow>
  <tablerow>
    <tablecell>
      <paragraph id="par_id3155122" role="tablecontent" xml-lang="en-US">To page</paragraph>
    </tablecell>
    <tablecell>
      <paragraph id="par_id3155144" role="tablecontent" xml-lang="en-US">Anchors the selected object to the current page.</paragraph>
    </tablecell>
  </tablerow>
  <tablerow>
    <tablecell>
      <paragraph id="par_id3145674" role="tablecontent" xml-lang="en-US">To frame</paragraph>
    </tablecell>
    <tablecell>
      <paragraph id="par_id3145697" role="tablecontent" xml-lang="en-US">Anchors the selected object to the surrounding frame.</paragraph>
    </tablecell>
  </tablerow>
</table>
<note id="par_id371654784167792"> Objects can only be positioned on the page where their anchor is located.</note>
<section id="anchor_moving">
<h2 id="hd_id341653868751593">Moving an Anchor</h2>
<section id="anchor_moving_text">
<paragraph id="par_id3145715" role="paragraph" xml-lang="en-US">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. </paragraph>
</section>
</section>
<section id="anchor_changing">
<h2 id="hd_id841653869348328">Changing an Anchor</h2>
<paragraph role="paragraph" id="par_id711653869372168">To change the anchoring options of an object, right-click the object, and then choose an option from the <link href="text/shared/01/05260000.xhp"><menuitem>Anchor</menuitem></link> submenu.</paragraph>
</section>
<section id="relatedtopics">
<embed href="text/swriter/guide/text_frame.xhp#text_frame"/>
</section>
</body>
</helpdocument>
