Formatting Conditional Text

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
peterbrown05
Propeller Head
Posts: 52
Joined: Fri Jun 18, 2010 9:08 am

Formatting Conditional Text

Post by peterbrown05 »

Hello,
Conditional text is used to include/exclude "chunks" from the various outputs.
In one particular document; Id like to include everything; but ideally apply a different paragraph style to anything conditionally tagged as "internal use only". (eg give it a light red background)

Is it possible to do so via css? or can conditional tags only be used to determine if content should be displayed or not?
cheers
peteB
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Formatting Conditional Text

Post by lacastle »

You would have to make a paragraph class (like p.internal), make it red italics (for example) and apply it to every place that you need it. there is also an option in the CSS that you could make that paragraph class invisible without using conditions if you didn't want it to appear in the output (but you'd have to make it visible again if you wanted to see it). unlike conditions, i don't think it will display in the Flare topic editor if it is invisible through styles.

see this topic for a longer discussion of this: http://forums.madcapsoftware.com/viewto ... 38&start=0
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Formatting Conditional Text

Post by NorthEast »

You can't use styles with conditional tags, so you'd need to apply a style and a condition.

One way to apply the style is to use a generic class, which can be applied to any tag; e.g. add this to the stylesheet in text mode:

Code: Select all

.internal
{
background-color: #ffcccc;
}
lacastle wrote:there is also an option in the CSS that you could make that paragraph class invisible without using conditions if you didn't want it to appear in the output (but you'd have to make it visible again if you wanted to see it). unlike conditions, i don't think it will display in the Flare topic editor if it is invisible through styles.
If you mean use display: none ; that's no good for help outputs, as the hidden text can simply be displayed by a search.
Post Reply