Thanks for your reply, Lydia.
you would need to know up front whether the margin text ends up on a left or right side and then apply the left or right margin style
Since this is not possible i was wondering if i can link certain styles only to left or right pages. E.g. if Flare would provide a variable that provide information about if it is a right page, a left page, a title page etc. or at least if it is an even or odd page, i could use this variable as a css id or css class for the body (pseudo code):
Code: Select all
<body id="<MadCap:variable name="System.PageType" />">
So I could easily style left and right pages without knowing on what page the content i'm about to write will end up. In the content i just need to say
"This is some marginal text" and apply the style ".marginal" to the paragraph. Done. And in the stylesheet i could just write:
Code: Select all
#left p.marginal {
float:left;
margin-left:-2cm;
text-align:right;
}
#right p.marginal {
float:right;
margin-right:-2cm;
text-align:left;
}
Or simply use some MC-Media-Queries like this:
Code: Select all
@mc-pagetype:left {
p.marginal {
float:right;
margin-right:-2cm;
text-align:left;
}
}
If there is no such thing i would file a feature request.
with two body frames in the page layout
I'm not sure if i undestand this correctly. I believe i was thinking of that in the past. But i dropped it. The marginal text would not flow with the main content, wouldn't it? I mean, if the content is changed and the paragraphs slides down, i would need to edit all the marginal text again. Anyway i would need to fill the marginal column with tons of linebreaks just to reach that paragraph the marginal text belongs to.
apply frame breaks in the topic, where necessary.
Never heard of that. This is why i have the decent feeling, that i did not understand your approach correctly, as mentioned above.
Anyway i found a solution that currently works good enough. If i use the MadCap css property "mc-float:outside-frame" i have at least alternating marginal columns:
Code: Select all
p.marginal
{
mc-float:outside-frame;
width: 3cm;
height:auto;
font-style:italic;
page-break-before: auto;
page-break-after: avoid;
page-break-inside: avoid;
padding-left:4mm;
padding-right:4mm;
vertical-align: text-top;
padding-bottom:0;
}
Looks almost what i want - except the alternating "text-aling:left/text-aling:right":
2015-04-28_11-58-27.png
You do not have the required permissions to view the files attached to this post.