|
How to position elementsTo position elements in relation to each other in a template, wrap those elements in a Table or Box (see Table and Boxes) and/or use the Spacing property of the elements. The Spacing property can also be used to indent elements or create a hanging paragraph or image; see Spacing. Guides help to align elements as well; see below. Where to use Tables and BoxesTables, Positioned Boxes and Inline Boxes can help position elements in relation to other elements. It depends on the context which element is best to use. In the Email context, Tables are the most reliable way to position text and images; see Designing an Email template and Table. In the Web context, Inline Boxes are the preferred way to position elements; see Boxes. Tables should only be used to display data in a tabular format, not to position text and images. Tables used in web pages to position elements (and often, Positioned Boxes) make those pages less accessible to users with disabilities and to viewers using smaller devices. In the Print context, Tables can be used to position elements, as well as both types of Boxes; see Table and Boxes. SpacingBoxes, tables, paragraphs and many other elements have a margin and padding. To learn how to set an element's spacing properties, see Spacing. Use a negative left margin to create a hanging paragraph or image.
GuidesGuides are horizontal and vertical lines used to help in designing templates. They can only be used in Print sections. Positioned Boxes (and any other objects that have their position set to absolute) will snap to guides when moved within a few pixels of them. To add a guide, press the Insert Horizontal Guide or Insert Vertical Guide buttons on the Toolbar. To move a guide, click and drag it to a new location. Double-clicking the guide brings up its Edit dialog where its exact position can be adjusted. To delete a guide, double-click on it and press the Delete button. Using the CSS
|
|