Aligning index columns when there's a "header"

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Fiona
Sr. Propeller Head
Posts: 117
Joined: Tue Jan 27, 2015 7:44 am
Location: U.K.

Aligning index columns when there's a "header"

Post by Fiona »

We have a two-column index in our PDFs. The index has sub-headings corresponding to the letters of the alphabet, and there is a vertical spacing built in to the style of these so that there's a gap above them. This is great most of the time, but on the first page of the index the two columns are not aligned (the second column starts higher up the page than the first one) – this also applies to any other column that happens to start with a sub-heading.

I do appreciate that I'm being beyond picky now, but I can't be the only person with this issue and I'm hoping that some guru out there might have a trick to get around this!

In summary, I want to be able to tell Flare that the first item in a column should always have padding-top: 0px and margin-top: 0px even when that item would have had padding or a margin if it was located elsewhere. Is this feasible?

Thanks. Fiona
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Aligning index columns when there's a "header"

Post by Nita Beck »

“Picky” should be every tech writer’s middle name.

Have you tried the “Collapse top margin” option in your PDF target?

https://help.madcapsoftware.com/flare20 ... argins.htm

I see there’s a note (a caveat) at the bottom of the topic that might apply to your situation.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Fiona
Sr. Propeller Head
Posts: 117
Joined: Tue Jan 27, 2015 7:44 am
Location: U.K.

Re: Aligning index columns when there's a "header"

Post by Fiona »

Thanks Nita. I got very excited when I saw this, then I checked my PDF settings and I already have that option checked. Looking at the CSS we have used padding rather than margins. Time to play with the CSS! I wouldn't have known where to look without your advice though, so thanks again. Fiona
Fiona
Sr. Propeller Head
Posts: 117
Joined: Tue Jan 27, 2015 7:44 am
Location: U.K.

Re: Aligning index columns when there's a "header"

Post by Fiona »

CSS amended and all is well. Thanks for the help Nita :-)
sarrantsvt
Propeller Head
Posts: 47
Joined: Mon Jun 28, 2021 8:02 am

Re: Aligning index columns when there's a "header"

Post by sarrantsvt »

CSS amended and all is well.
Can you post the details of what you did? It will help others.
Doing Online Help since 1990. I remember "dots" .........
Got a bug? https://www.madcapsoftware.com/feedback/bugs/
Got a suggestion? https://www.madcapsoftware.com/feedback ... quest.aspx
Fiona
Sr. Propeller Head
Posts: 117
Joined: Tue Jan 27, 2015 7:44 am
Location: U.K.

Re: Aligning index columns when there's a "header" [RESOLVE

Post by Fiona »

sarrantsvt wrote:Can you post the details of what you did? It will help others.
In the CSS, I updated the sub-heading style to use margins instead of padding.

In the Project Organiser, I double-clicked on the PDF target. In the Target Editor that opened, I navigated to the Advanced tab. In the Margins section, I selected Collapse top margin at top of page/column.

No more random vertical space at the top of pages/columns.
Post Reply