How to Indent a Table

 Article #: TAB1004F  Product: Flare   Version:All

Full Description:

Table styling in a web document is a pretty complex and sometimes confusing subject. Users can indent a table in Flare by adjusting the Stylesheet, the Tablestyle, or the source code of the topic file.

Solution:

If the table is styled by the regular stylesheet, users need to adjust the Stylesheet:

  1. Open up the stylesheet in the Content Explorer.
  2. Highlight the <table> style on the left.
  3. Click on the Add Class button located near the top of the Stylesheet Editor.
  4. Name the subclass, and press OK.
  5. Make sure the newly created subclass is created.
  6. Set a margin-left value for the subclass. The margin left value would equal to the amount of indentation on the table.
  7. Save the stylesheet.
  8. Open the topic file with the table.
  9. Place the mouse cursor anywhere outside of the table.
  10. Right click on the <table> bar directly to the left of the table. (Make sure the Toggle Show Blocks button is turned on in the XML Editor.)
  11. Choose Table Properties.
  12. In the Table Properties menu, make sure the Align setting is set to (Default).
  13. Press OK to exit out of the Table Properties menu.
  14. Right click on the <table> bar directly to the left of the table again.
  15. Go to Style Class, and pick the subclass that was created in step 4.

 

If the table is styled by the Tablestyle, users need to adjust the Tablestyle in source code view:

  1. In the Content Explorer, locate the Tablestyle that is used by the table. (It should be located in Resources/Tablestyles)
  2. Right click on the Tablestyle, and choose Open with -> Internal Text Editor.
  3. Find the first style definition after the sentence:
    /* Cell Styles: */.
  4. In the style definition, add in the following line:
    margin-left: 200px;

    Tip: Note that the amount of indentation should be inserted in place of the "200px" in the example above.

  5. Save the Tablestyle. Now, every table that is using that Tablestyle will be indented as long as the table's alignment setting is set to (Default).

 

Another way to indent a table is to modify the codes in the topic file. It would work with all tables:

  1. Open the topic file with the table.
  2. Place the mouse cursor anywhere outside of the table.
  3. Right click on the <table> bar directly to the left of the table. (Make sure the Toggle Show Blocks button is turned on in the XML Editor.)
  4. Choose Table Properties.
  5. In the Table Properties menu, make sure the Align setting is set to Left.
  6. Press OK to exit out of the Table Properties menu.
  7. In the Content Explorer, locate the topic file containing the table.
  8. Right click on the topic file, and choose Open with -> Internal Text Editor.
  9. Find the <table> in the codes.
  10. Inside the <table> tag, you should see the margin-left setting set to 0. Replace the 0 with the amount of indentation that you want for your table.
  11. Save the topic file.

 

Attribution:

Last updated:

February 29, 2008

Author:

Kevin Lin