Left Table indentation to get table in line with list

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Joost
Propeller Head
Posts: 45
Joined: Wed Jan 02, 2008 1:32 am

Left Table indentation to get table in line with list

Post by Joost »

Hi,

Where can I set the left table indentation? I can't seem to find this setting. I am trying to get the left indentation of my tables in line with a numbered list. Now my tables all start at 0 at the left margin.

The only way I have found so far is a work-around. I have taken the default table and used a soft return on the list paragraph above. It does not seem to work with tables created in template style sheets. Then funny stuff happens when you start editing styles and text in such tables.

Thanks in advance,

Joost
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Left Table indentation to get table in line with list

Post by KevinDAmery »

When you use a Table Style, Flare inserts inline-CSS code into the <table> tag. This supercedes anything in your stylesheet (since according to CSS rules you apply the style information that is closest to the content). So you'll need to either change or remove that style code if you want to modify the appearance of the table.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

Re: Left Table indentation to get table in line with list

Post by TheGreatAndPowerfulOz »

Joost,

We usually place the tables we want to line up with bulleted or numbered lists inside a <div> which has a special class we've defined with a 'left-indent' setting that matches the indent of the list.

For example, our stylesheet has the following classes defined (actual values could vary for you, and should be tweaked until they line up properly):

Code: Select all

.outlineNote  /* used for unordered (bulleted) lists */
{
    margin-left: 42.00pt;
    width: 100%;
}

.outlineNoteDecimal  /* used for 1st-level ordered lists (1., 2., 3., etc.) */
{
    margin-left: 46.50pt;
    width: 100%;
}

.outlineNoteLowerAlpha  /* used for 2nd-level ordered lists (a., b., c., etc.) */
{
    margin-left: 61.50pt;
    width: 100%;
}

.outlineNoteLowerRoman  /* used for 3rd-level ordered lists (i., ii., iii., etc.) */
{
    margin-left: 84.00pt;
    width: 100%;
}
Note: The 'width: 100%' part of the class definitions is important! This will ensure that any table inserted within the <div> won't blow past the right margin of the page, since it's been indented as a result of being inside the <div>.

The code behind a given topic would look something like this:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
    <head>
        <link href="Resources/Stylesheets/MyStylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <h1>My Topic Heading</h1>
        <p>Topic content.</p>
        <ol>
            <li>My first item in a numbered list.</li>
            <li>My second item in a numbered list.</li>
        </ol>
        <div class="outlineNoteDecimal">
            <table>
                <col />
                <col />
                <tr>
                    <td>
                        <p>Info</p>
                    </td>
                    <td>
                        <p>Info</p>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Info</p>
                    </td>
                    <td>
                        <p>Info</p>
                    </td>
                </tr>
            </table>
        </div>
        <ol MadCap:continue="true">
            <li>My third item in a numbered list.</li>
        </ol>
        <p>More topic content.</p>
    </body>
</html>
This method has worked wonderfully for us. Hope it helps in your case, too!
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
Joost
Propeller Head
Posts: 45
Joined: Wed Jan 02, 2008 1:32 am

Re: Left Table indentation to get table in line with list

Post by Joost »

Thanks a lot for the explanation. But where exactly are you inserting the div tag? Because I tried inserting a div in a numbered list as explained in the user manual, and it wouldn't allow me to do this.
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

Re: Left Table indentation to get table in line with list

Post by TheGreatAndPowerfulOz »

Joost,

I actually found a better way of doing this after I posted the <div> method yesterday! I was reading some associated posts and found this one by 'doc_guy':

http://forums.madcapsoftware.com/viewto ... em+#p31279

Check out the screenshots and explanations he offers, and you'll see that it's really easy to get stuff to align with your ordered or unordered lists.

I tried his method by right-clicking my <li> element and selecting "Make Paragraph Item(s)". Then, I went to the Table menu and chose "Insert", whereupon I was able to plug a line-up table in—no problem. I did notice that you need to set the table width to "auto" (as opposed to "100%") to prevent it from running over the right margin of the page.

Now, if you still want to go with the <div> idea I had suggested, here are the steps to follow:
  • Go to the end of the list item that you want to follow by a table.
  • Hit enter (a new list item is created).
  • Use the list button at the top of the Flare application to specify that the line is NOT an ordered or unordered list (make the line a <p>, instead).
  • Once the line is a paragraph type (<p>), choose "Group" from the Format menu, and select "div" as the tag to use.
  • Now you can insert your table (or whatever else you want) within the <div> element that's been created.
  • When you're ready to begin the numbered list again, do so AFTER (outside) of the <div> element, and use the list actions button at the top of the Flare application to select "Continue Sequence".
If you're still unsure about ...
Joost wrote:where exactly are you inserting the div tag?
... you can open your topic in a text editor to look at the code, then paste in the code sample I provided in my previous post. Once you save and re-open the topic in Flare, you'll be able to see where the <div> tag falls in relation to the ordered/unordered list.

Hope this helps!
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
Joost
Propeller Head
Posts: 45
Joined: Wed Jan 02, 2008 1:32 am

Re: Left Table indentation to get table in line with list

Post by Joost »

Thanks a lot. It works, even with the tables I created myself. But sometimes the editor does not react to the Move Left or Make Paragraph commands.

The trick is:
  • Make paragraph item
    Move left
Simple but you have to know.
smajors
Sr. Propeller Head
Posts: 180
Joined: Mon Oct 21, 2013 9:28 am
Location: Midwest United States

Re: Left Table indentation to get table in line with list

Post by smajors »

I'm trying to add a table in an unordered list, under a bullet, and then have the list continue, but it is not working. I've tried using a div but then the list below the table does not align correctly with how it's supposed to. I have to move the table as far left as possible because it's a rather large table, in order to get it to fit on the page and not have it scrunched. This is the styling that's happening,
table_ul.gif
I need the list under the table to align at the level I highlighted to match the list above the table, but it is creating additional lists that I can't remove or it places it at the very first bullet point.
You do not have the required permissions to view the files attached to this post.
Technical Writer
Training & Development Team/Marketing Department
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

Re: Left Table indentation to get table in line with list

Post by TheGreatAndPowerfulOz »

smajors wrote:I need the list under the table to align at the level I highlighted to match the list above the table, but it is creating additional lists that I can't remove or it places it at the very first bullet point.
Without seeing your actual code this is a little bit of a shot in the dark, but I'm thinking your unordered list code ought to look something like the following:

Code: Select all

<ul>
    <li>
        <p>APH Yeild Exclusion (YE) option</p>
        <ul>
            <li>Allows producers to receive a higher approved yield</li>
            <li>Counties eligible...</li>
            <li>(other 2nd-level list items)</li>
        </ul>
        <div>
            <table>YOUR TABLE HERE</table>
        </div>
    </li>
    <li>
        <p>Wheat or Barley Winter Coverage Endorsement (WCE)</p>
        <ul>
            <li>Available in counties that list both fall and...</li>
            <li>Must be elected by the SCD; continuous unit canceled</li>
            <li>(other 2nd-level list items)</li>
        </ul>
    </li>
    <li>(other 1st-level list items)</li>
</ul>
The above code would yield a result like the following (if that's what you're looking for):
ForumPic.png
You do not have the required permissions to view the files attached to this post.
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
smajors
Sr. Propeller Head
Posts: 180
Joined: Mon Oct 21, 2013 9:28 am
Location: Midwest United States

Re: Left Table indentation to get table in line with list

Post by smajors »

This is the code I'm seeing, but when I try to remove the extra <li> and <ul> tags, it causes an error in the body but don't know why or how to fix it.
ul_html.gif
You do not have the required permissions to view the files attached to this post.
Technical Writer
Training & Development Team/Marketing Department
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

Re: Left Table indentation to get table in line with list

Post by TheGreatAndPowerfulOz »

smajors wrote:This is the code I'm seeing...
The screen capture of your code doesn't represent all the content of the topic, so it's a little tough to troubleshoot as is.

Would you mind copying/pasting all the code in your topic to a text file and attaching it here? I'm sure we can sort it out with that in hand.
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
ChoccieMuffin
Senior Propellus Maximus
Posts: 2634
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Left Table indentation to get table in line with list

Post by ChoccieMuffin »

Does the table belong with one of the bullets? If so, you can nest the table inside the relevant <li>. By the looks of it, you have list items nested to five levels, so if you want it to be part of the bullet "Producers may elect YE..." then in that <li>

To do this, in the list item that is meant to include the table, right-click the <li> block on the left-hand side of the XML editor and click Make Paragraph Item.

At the end of list item, press Enter to create a new empty paragraph, then insert the table.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
smajors
Sr. Propeller Head
Posts: 180
Joined: Mon Oct 21, 2013 9:28 am
Location: Midwest United States

Re: Left Table indentation to get table in line with list

Post by smajors »

The table does belong to the "Producers..." bullet so ideally it would go underneath but because this list has so many sub-levels, I had to make a paragraph under the bullet and move it as far left as possible because it's such a large table (3 columns with 2 tables within it) it is the only way to get it to fit well on the page. The problem I'm having is the sub-list won't continue after the table with the sub-list before the table.
Technical Writer
Training & Development Team/Marketing Department
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

Re: Left Table indentation to get table in line with list

Post by TheGreatAndPowerfulOz »

smajors wrote:The table does belong to the "Producers..." bullet so ideally it would go underneath...
I understand your issue of trying to make a large table fit in a small area (that will need to be addressed separately), but knowing now that the table is to be associated with the "Producers..." list item, here's the code you'd need to have it nested under that item, as ChoccieMuffin suggests:

Code: Select all

<ul>
    <li>
        <p>APH Yeild Exclusion (YE) option</p>
        <ul>
            <li>Allows producers to receive a higher approved yield</li>
            <li>Counties eligible...</li>
            <li>(other 2nd-level list items)</li>
            <li>
                <p>Producers...</p>
                <div>
                    <table>YOUR TABLE HERE</table>
                </div>
            </li>
        </ul>
    </li>
    <li>
        <p>Wheat or Barley Winter Coverage Endorsement (WCE)</p>
        <ul>
            <li>Available in counties that list both fall and...</li>
            <li>Must be elected by the SCD; continuous unit canceled</li>
            <li>(other 2nd-level list items)</li>
        </ul>
    </li>
    <li>(other 1st-level list items)</li>
</ul>
Any chance you can attach the full code of the topic, as I asked previously? I'd happily tweak it for you to give you the actual code you need, which you could then just paste back into the topic.
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
ChoccieMuffin
Senior Propellus Maximus
Posts: 2634
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Left Table indentation to get table in line with list

Post by ChoccieMuffin »

You don't actually NEED a <div> to place the table, as far as I'm aware.
(@TheGreatAndPowerfulOz, why did you specify to put it in a div? Is there an advantage to doing so? I've always been a bit nervous of divs so don't tend to use them.)

You might, however, want to make a table class in your main stylesheet, e.g. "table.outdent" and set the left margin as a negative number, then apply class="outdent" to the table that you insert at that point. That should make the table go to the left margin of the page, not just the left margin of the bullet that it's in.

When you restart your nested list, because the table is just a bit of content in the previous list item, you won't have all those nested things that you want to get rid of.

Sorry, probably not making a great deal of sense but I hope you get the idea. As TGAPO has suggested, copy and paste the code and we can have a play.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

Re: Left Table indentation to get table in line with list

Post by TheGreatAndPowerfulOz »

ChoccieMuffin wrote:You don't actually NEED a <div> to place the table, as far as I'm aware.
(@TheGreatAndPowerfulOz, why did you specify to put it in a div?
I think you're right, ChoccieMuffin. There is no need to use a <div> element to place a <table> element within a <li> element. That's just the way I wound up doing it ages ago, having heard the idea that nesting a <table> element directly within a <li> element was invalid HTML.

I just did a quick bit of research on the matter and found that the list of valid elements that can be nested in a <li> element are the following:

<a>, <abbr>, <address>, <article>, <aside>, <audio>, <b>, <bdo>, <blockquote>, <br>, <button>, <canvas>, <cite>, <code>, <command>, <datalist>, <del>, <details>, <dfn>, <div>, <dl>, <em>, <embed>, <fieldset>, <figure>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hgroup>, <hr>, <i>, <iframe>, <img>, <input>, <ins>, <kbd>, <keygen>, <label>, <map>, <mark>, <math>, <menu>, <meter>, <nav>, <noscript>, <object>, <ol>, <output>, <p>, <pre>, <progress>, <q>, <ruby>, <samp>, <script>, <section>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <svg>, <table>, <textarea>, <time>, <ul>, <var>, <video>, <wbr> and Text.

So, smajors, your code would look something like the following (if you insert the <table> element directly, with no <div> surrounding it):

Code: Select all

<ul>
    <li>
        <p>APH Yeild Exclusion (YE) option</p>
        <ul>
            <li>Allows producers to receive a higher approved yield</li>
            <li>Counties eligible...</li>
            <li>(other 2nd-level list items)</li>
            <li>
                <p>Producers...</p>
                <table>YOUR TABLE HERE</table>
            </li>
        </ul>
    </li>
    <li>
        <p>Wheat or Barley Winter Coverage Endorsement (WCE)</p>
        <ul>
            <li>Available in counties that list both fall and...</li>
            <li>Must be elected by the SCD; continuous unit canceled</li>
            <li>(other 2nd-level list items)</li>
        </ul>
    </li>
    <li>(other 1st-level list items)</li>
</ul>
ChoccieMuffin - You offer a good suggestion to smajors, by the way, in recommending a CSS class that will set the left margin of the <table> element further left than the actual <li> left margin.
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
smajors
Sr. Propeller Head
Posts: 180
Joined: Mon Oct 21, 2013 9:28 am
Location: Midwest United States

Re: Left Table indentation to get table in line with list

Post by smajors »

ChoccieMuffin wrote: You might, however, want to make a table class in your main stylesheet, e.g. "table.outdent" and set the left margin as a negative number, then apply class="outdent" to the table that you insert at that point. That should make the table go to the left margin of the page, not just the left margin of the bullet that it's in.

When you restart your nested list, because the table is just a bit of content in the previous list item, you won't have all those nested things that you want to get rid of.

Sorry, probably not making a great deal of sense but I hope you get the idea. As TGAPO has suggested, copy and paste the code and we can have a play.
What negative number do you suggest for the outdent? I think this will work for what I'm trying to accomplish. On a side note, for some reason the list levels in my code do not go on its own line in the Text Editor so it's hard to tell because they are nested tables and the indent level goes to 5 bullet points.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<html MadCap:lastBlockDepth="19" MadCap:lastHeight="552" MadCap:lastWidth="530" xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
    <head>
        <link href="../../../Resources/TableStyles/Basic.css" rel="stylesheet" MadCap:stylesheetType="table" />
    </head>
    <body>
        <h1>draft_table</h1>
        <ul>
            <li>Level 1<ul><li>Level 2<ul><li>Level 3<ul><li>Level 4 <ul><li>Level 5</li></ul><table style="width: 100%;margin-left: auto;margin-right: auto;mc-table-style: url('../../../Resources/TableStyles/Basic.css');" class="TableStyle-Basic" cellspacing="0"><col class="Column-Column1" /><col class="Column-Column1" /><col class="Column-Column1" /><tbody><tr class="Body-Body1"><td class="BodyB-Column1-Body1"><table style="width: 100%;margin-left: auto;margin-right: auto;mc-table-style: url('../../../Resources/TableStyles/Basic.css');" class="TableStyle-Basic" cellspacing="0"><col class="Column-Column1" style="width: 32px;" /><col class="Column-Column1" style="width: 60px;" /><col class="Column-Column1" style="width: 28px;" /><col class="Column-Column1" style="width: 36px;" /><col class="Column-Column1" /><thead><tr class="Head-Header1"><th class="HeadD-Column1-Header1" colspan="5"><span style="font-size: 10pt;">APH Database before YE</span></th></tr></thead><tbody><tr class="Body-Body1"><th style="font-size: 9pt;" class="BodyE-Column1-Body1">2015</th><th style="font-size: 9pt;" class="BodyE-Column1-Body1">Soybeans <br />(0081)</th><th style="font-size: 9pt;" class="BodyE-Column1-Body1">NFAC NI<br />(053)</th><th colspan="2" style="font-size: 9pt;" class="BodyD-Column1-Body1">NTS<br /> (997)</th></tr><tr class="Body-Body1"><td colspan="3" class="BodyE-Column1-Body1" style="font-size: 9pt;"><b><span style="font-size: 9pt;">Unit # 0001-0000 </span>BU</b></td><td rowspan="2" class="BodyE-Column1-Body1" style="font-weight: bold;text-align: center;font-size: 9pt;">Yld <br />Desc</td><td rowspan="2" class="BodyD-Column1-Body1" style="font-weight: bold;text-align: center;font-size: 9pt;">Yield</td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-weight: bold;text-align: center;font-size: 9pt;">Year</td><td class="BodyE-Column1-Body1" style="font-weight: bold;text-align: center;font-size: 9pt;">Prod</td><td class="BodyE-Column1-Body1" style="font-weight: bold;text-align: center;font-size: 9pt;">Acres</td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2010</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2750</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">50</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">55</td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2011</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">4700</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">100</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">47</td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2012</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2100</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">50</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">42</td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2013</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">1200</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">100</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">12</td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2014</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">3050</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">50</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">61</td></tr><tr class="Body-Body1"><td colspan="2" class="BodyE-Column1-Body1" style="text-align: center;font-size: 10pt;">T-Yield = 30</td><td colspan="2" class="BodyE-Column1-Body1" style="font-size: 10pt;">Approved <br />APH</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">43</td></tr><tr class="Body-Body1"><td colspan="2" class="BodyE-Column1-Body1" style="background-color: #d3d3d3;font-size: 10pt;"> </td><td colspan="2" class="BodyE-Column1-Body1" style="font-size: 10pt;">Average <br />Yield</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;">43</td></tr><tr class="Body-Body1"><td colspan="2" class="BodyB-Column1-Body1" style="background-color: #d3d3d3;font-size: 10pt;"> </td><td colspan="2" class="BodyB-Column1-Body1" style="font-size: 10pt;">Rate Yield</td><td class="BodyA-Column1-Body1" style="font-size: 10pt;">43</td></tr></tbody></table></td><td class="BodyB-Column1-Body1"><p style="text-align: center;"><u>Unit 0001-0000 BU</u></p><p style="text-align: center;"><u>Excludable year(s): <span style="color: #ff0000;">2013</span></u></p><p style="text-align: center;"><u>Excluded year(s): </u><span style="color: #ff0000;text-decoration: underline;">2013</span></p><p style="text-align: center;"><u>Approved Yield Calculation:</u><br style="text-decoration: underline;" /><u>(61 + 42 + 47 + 55) / 4 = 51</u></p><p style="text-align: center;"><u>Adjusted Yield Calculation:</u><br style="text-decoration: underline;" /><u>(61 + 12 + 42 + 47 + 55) / 5 = 43</u></p><p> </p></td><td class="BodyA-Column1-Body1"><table style="width: 100%;margin-left: auto;margin-right: auto;mc-table-style: url('../../../Resources/TableStyles/Basic.css');" class="TableStyle-Basic" cellspacing="0"><col class="Column-Column1" style="width: 32px;" /><col class="Column-Column1" style="width: 38px;" /><col class="Column-Column1" style="width: 40px;" /><col class="Column-Column1" style="width: 37px;" /><col class="Column-Column1" style="width: 34px;" /><col class="Column-Column1" /><thead><tr class="Head-Header1"><th class="HeadD-Column1-Header1" colspan="6"><span style="font-size: 10pt;">APH Database after YE</span></th></tr></thead><tbody><tr class="Body-Body1"><th style="font-size: 9pt;" class="BodyE-Column1-Body1">2015</th><th style="font-size: 9pt;" class="BodyE-Column1-Body1">Soybeans <br />(0081)</th><th style="font-size: 9pt;" class="BodyE-Column1-Body1">NFAC NI<br />(053)</th><th colspan="3" style="font-size: 9pt;" class="BodyD-Column1-Body1">NTS (997)</th></tr><tr class="Body-Body1"><td colspan="3" class="BodyE-Column1-Body1" style="font-size: 9pt;"><b>Unit # 0001-0000 <br />BU</b></td><td rowspan="2" class="BodyE-Column1-Body1" style="text-align: center;font-size: 9pt;"><b>Yld <br />Desc</b></td><td rowspan="2" class="BodyE-Column1-Body1" style="text-align: center;font-size: 9pt;"><b>Yield</b></td><td rowspan="2" class="BodyD-Column1-Body1" style="text-align: center;font-size: 9pt;"><b>YE <br />Opt Out</b></td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="text-align: center;font-size: 9pt;"><b>Year</b></td><td class="BodyE-Column1-Body1" style="text-align: center;font-size: 9pt;"><b>Prod</b></td><td class="BodyE-Column1-Body1" style="text-align: center;font-size: 9pt;"><b>Acres</b></td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2010</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2750</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">50</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">55</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2011</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">4700</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">100</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">47</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2012</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2100</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">50</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">42</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="color: #ff0000;font-size: 10pt;">2013</td><td class="BodyE-Column1-Body1" style="color: #ff0000;font-size: 10pt;">1200</td><td class="BodyE-Column1-Body1" style="color: #ff0000;font-size: 10pt;">100</td><td class="BodyE-Column1-Body1" style="color: #ff0000;font-size: 10pt;">A</td><td class="BodyE-Column1-Body1" style="color: #ff0000;font-size: 10pt;">12</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" style="font-size: 10pt;">2014</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">3050</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">50</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">A</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">61</td><td class="BodyD-Column1-Body1" style="font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" colspan="2" style="font-size: 10pt;">T-Yield = 30</td><td class="BodyE-Column1-Body1" colspan="2" style="font-size: 10pt;">Approved APH</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;"><span style="color: #ff0000;">51</span></td><td class="BodyD-Column1-Body1" style="background-color: #d3d3d3;font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyE-Column1-Body1" colspan="2" style="font-size: 10pt;">Adjusted Yield = 43</td><td class="BodyE-Column1-Body1" colspan="2" style="font-size: 10pt;">Average Yield</td><td class="BodyE-Column1-Body1" style="font-size: 10pt;">43</td><td class="BodyD-Column1-Body1" style="background-color: #d3d3d3;font-size: 10pt;"> </td></tr><tr class="Body-Body1"><td class="BodyB-Column1-Body1" colspan="2" style="font-size: 10pt;"> </td><td class="BodyB-Column1-Body1" colspan="2" style="font-size: 10pt;">Rate Yield</td><td class="BodyB-Column1-Body1" style="font-size: 10pt;">43</td><td class="BodyA-Column1-Body1" style="background-color: #d3d3d3;font-size: 10pt;"> </td></tr></tbody></table></td></tr></tbody></table><ul><li>Level 5 - 2</li></ul></li></ul></li></ul></li></ul></li>
        </ul>
    </body>
</html>
Here's the example in the XML Editor. I want the table moved to the far left as possible, maybe aligning with Level 1 so the table is not so condensed.
xml_editor_table_list.gif
You do not have the required permissions to view the files attached to this post.
Technical Writer
Training & Development Team/Marketing Department
ChoccieMuffin
Senior Propellus Maximus
Posts: 2634
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Left Table indentation to get table in line with list

Post by ChoccieMuffin »

smajors, I think you'll just have to have a play with the numbers and discover the best one by trial and error. You might also want to have a series of table classes, e.g. table.level1, table.level2, table.level3 etc, and have the left margin set differently for each table so that when you have a table that is part of a level5 list item you use table.level5, which has a left margin of, say, -2 inches, while the bog-standard table doesn't have a negative left margin. (And don't forget, if you are creating both help and PDF with your output you may need to create these classes in both mediums. That one gets lots of us lots of the time.)

Also, to make your code easier to read when you're in the Text Editor you can press Enter before a new <li> and after a </li> and it won't affect the code, just how it is displayed in the Text Editor. Go ahead and give it a go, I'm sure you'll find it helpful.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
dorcutt
Sr. Propeller Head
Posts: 234
Joined: Thu May 15, 2014 12:16 pm

Re: Left Table indentation to get table in line with list

Post by dorcutt »

Just a random note: adding a div into a list is secretly a bad idea if you ever need to create Word output. There is a bug where the list item where the div is starts with a blank line in Word output, which is very annoying.
-Dan, Propellerhead-in-training
smajors
Sr. Propeller Head
Posts: 180
Joined: Mon Oct 21, 2013 9:28 am
Location: Midwest United States

Re: Left Table indentation to get table in line with list

Post by smajors »

ChoccieMuffin wrote:smajors, I think you'll just have to have a play with the numbers and discover the best one by trial and error. You might also want to have a series of table classes, e.g. table.level1, table.level2, table.level3 etc, and have the left margin set differently for each table so that when you have a table that is part of a level5 list item you use table.level5, which has a left margin of, say, -2 inches, while the bog-standard table doesn't have a negative left margin. (And don't forget, if you are creating both help and PDF with your output you may need to create these classes in both mediums. That one gets lots of us lots of the time.)

Also, to make your code easier to read when you're in the Text Editor you can press Enter before a new <li> and after a </li> and it won't affect the code, just how it is displayed in the Text Editor. Go ahead and give it a go, I'm sure you'll find it helpful.
Thanks for the suggestions. I will work on this and let you know if I run into any problems. You've all been helpful!
Technical Writer
Training & Development Team/Marketing Department
Post Reply