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:
- Open up the stylesheet in the Content Explorer.
- Highlight the <table> style on the left.
- Click on the Add Class button located near the top of the Stylesheet Editor.
- Name the subclass, and press OK.
- Make sure the newly created subclass is created.
- Set a margin-left value for the subclass. The margin left value would equal to the amount of indentation on the table.
- Save the stylesheet.
- Open the topic file with the table.
- Place the mouse cursor anywhere outside of the table.
- 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.)
- Choose Table Properties.
- In the Table Properties menu, make sure the Align setting is set to (Default).
- Press OK to exit out of the Table Properties menu.
- Right click on the <table> bar directly to the left of the table again.
- 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:
- In the Content Explorer, locate the Tablestyle that is used by the table. (It should be located in Resources/Tablestyles)
- Right click on the Tablestyle, and choose Open with -> Internal Text Editor.
- Find the first style definition after the sentence:
/* Cell Styles: */. - 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.
- 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:
- Open the topic file with the table.
- Place the mouse cursor anywhere outside of the table.
- 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.)
- Choose Table Properties.
- In the Table Properties menu, make sure the Align setting is set to Left.
- Press OK to exit out of the Table Properties menu.
- In the Content Explorer, locate the topic file containing the table.
- Right click on the topic file, and choose Open with -> Internal Text Editor.
- Find the <table> in the codes.
- 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.
- Save the topic file.
Attribution:
Last updated: February 29, 2008 |
Author: Kevin Lin |