After reading about how customisable tables can be with table stylesheets, I decided to have a play, but for some reason I can't get the darn thing to indent.
Working in Print medium (both in the XML editor and in the Table Stylesheet editor) in the General tab I set Table Margins Left to 3in (just so it would be obvious). But when I generate a PDF that uses my Print medium, it stays resolutely glued to the left border of the body frame.
In my regular stylesheet, <table> has margin-left:1in.
I'm sure there's something really obvious that I've missed, can someone please point me towards it?
Many thanks
Update:
Looking in the code, I made sure there wasn't any inline styling, then applied the table stylesheet, and got this:
<table class="TableStyle-Col-1-20-em-2-cols" style="margin-left: 0;margin-right: auto;mc-table-style: url('Resources/TableStyles/Col-1-20-em-2-cols.css');" cellspacing="0">
<col class="TableStyle-Col-1-20-em-2-cols-Column-Column1" />
<col class="TableStyle-Col-1-20-em-2-cols-Column-Column2" />
Where on earth did that bit of styling come from, and how can I stop it, so it indents properly?
Think Flare's having a bit of a dicky fit - in a different part of the document I inserted a new table and applied the CLASS (from the regular style sheet) that I was using, and that worked, and all of a sudden I find that Flare has inserted style="margin-left: 0;margin-right: auto;" into THAT table as well. Think I need to go and make some tea...
Table stylesheets - left margin not doing anything!
-
ChoccieMuffin
- Senior Propellus Maximus
- Posts: 2650
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Table stylesheets - left margin not doing anything!
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Re: Table stylesheets - left margin not doing anything!
Check the individual table properties, I would guess that Align is set to Left instead of (Default).
Align doesn't actually set alignment as you might expect; e.g. left align sets margin-left: 0 and margin-right: auto; right align is vice-versa; and center uses auto for both margins.
I guess MadCap wanted to implement an 'alignment' setting like you see in other apps, but there isn't actually a corresponding alignment property in CSS - it's handled using margins.
Align doesn't actually set alignment as you might expect; e.g. left align sets margin-left: 0 and margin-right: auto; right align is vice-versa; and center uses auto for both margins.
I guess MadCap wanted to implement an 'alignment' setting like you see in other apps, but there isn't actually a corresponding alignment property in CSS - it's handled using margins.