============================== Aligning your content - PD ============================== Alignment of components in pages, containers and tables is fully supported, as is text alignment. Unlike html, the alignment is set on the container, rather than the element. So if you set left align on a div, all the content within the div will be aligned to the left. Also unlike html, vertical alignment is fully supported, without hacks or fixes. This is because we have a known height of a page or container. Horizontal Allignment ====================== The alignment of content within a page or container can either be set as the standard values: * Left (default) * Right * Center * Justified .. code-block:: xml This is the Centered Heading Default alignment. With mixed content. Right alignment. With mixed content. Center alignment. With mixed content. This is justified alignment across multiple lines in the container that will stretch to the width with word and character spacing, with mixed content. After the content .. image:: images/documenthalign.png Vertical alignment ================== Along with horizontal alignment vertical alignment can be applied to the page or containers. .. code-block:: xml Page has a bottom vertical alignment Default top left alignment. Right Bottom alignment with mixed content. Center Middle alignment with fixed width and mixed content. .. image:: images/documentvalign.png .. note:: With containers unless they have a specific height there gerenally will not be any vertical change, because they shrink to their respective heights. However actual heights will support the alligment. Nested Alignment in containers ============================== Alignment applies to the containers individually. Nesting various alignment attributes on content within a page can be done, and also applied to positioned components. So complex layouts can be achieved with minimal . .. code-block:: xml
Nested Content Alignment
The alignment of a page content. Pushing to absolute.
.. image:: images/documentnestedalign.png