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
Formatting Conditional Text
-
peterbrown05
- Propeller Head
- Posts: 52
- Joined: Fri Jun 18, 2010 9:08 am
-
lacastle
- Propellus Maximus
- Posts: 1028
- Joined: Thu Apr 12, 2007 7:28 am
- Location: Wilmington, DE
- Contact:
Re: Formatting Conditional Text
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
see this topic for a longer discussion of this: http://forums.madcapsoftware.com/viewto ... 38&start=0
Laura A. Castle
http://www.lauracastle.com
http://www.lauracastle.com
Re: Formatting Conditional Text
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:
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;
}If you mean use display: none ; that's no good for help outputs, as the hidden text can simply be displayed by a search.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.