Word Wrap in Expanding Text

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
techwrite_BC
Propeller Head
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

Word Wrap in Expanding Text

Post by techwrite_BC »

Hi,

I am currently defining expanding text. What I'd like to have is a word wrap after the "hot spot" (CSS: the expanding Head). I've seen this in the Flare online help (for instance the expanding text in this topic: https://help.madcapsoftware.com/flare20 ... ements.htm.)

I already tried in the CSS something like

Code: Select all

MadCap|expandingBody:before
{
	content: \A
}
which works in the Flare WYSIWYG-Editor, but not in the HTML5-Output.
Can anyone help?

Thank you in advance.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Word Wrap in Expanding Text

Post by ChoccieMuffin »

Couldn't swear to it, but what's in the Flare help looks more like a dropdown than expanding text. (Just checked on the Flare help and yes, it's a dropdown.)

I can't figure out what you mean by "I'd like to have a word wrap after the hot spot". Can you explain a bit more?
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
techwrite_BC
Propeller Head
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

Re: Word Wrap in Expanding Text

Post by techwrite_BC »

I added a picture, I hope that helps. I think Madcap once called the expandingHead the "hot spot". Usually the expandingBody appears in the same line as the expanding Head, but Madcap managed it somehow to do a word wrap.
You do not have the required permissions to view the files attached to this post.
Psider
Propellus Maximus
Posts: 811
Joined: Wed Jul 06, 2011 1:32 am

Re: Word Wrap in Expanding Text

Post by Psider »

Is it possible to set the expandingbody style to display: Inline-block? I don't have access to Flare at the moment, but inspecting the Madcap help, it *seems* like that might be how they're doing it.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Word Wrap in Expanding Text

Post by ChoccieMuffin »

I looked at the help page you pointed to, and it's definitely a Drop-Down Text rather than Expanding Text.

Definitions from the help:
Expanding text is a feature that lets users click a hotspot to expand and collapse content that appears after it in the same paragraph...
Drop-down text is a feature that lets users click a hotspot to expand and collapse specified content below it.

Here's the help for expanding text: http://help.madcapsoftware.com/flare201 ... g-Text.htm
Here's the help for drop-down text: http://help.madcapsoftware.com/flare201 ... n-Text.htm
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Psider
Propellus Maximus
Posts: 811
Joined: Wed Jul 06, 2011 1:32 am

Re: Word Wrap in Expanding Text

Post by Psider »

The example techwrite_BC points to is a weird one. It acts like dropdown text, but the code looks like expanding. :shock:
samplecode.PNG

If you can use dropdowns, that would be better as it's designed to display below the link text.
You do not have the required permissions to view the files attached to this post.
techwrite_BC
Propeller Head
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

Re: Word Wrap in Expanding Text

Post by techwrite_BC »

Thank you for your hints and answers! I played a little bit with the "display: inline-block" feature, and actually it does seem to work, but is somehow overwritten in the output by some dubious other CSS files and specifications :wink:
Though I like the word wrap effect very much I think it is not feasible to achieve within a reasonable amount of time, so for now I think I will stick to the original output without the word wrap.
Post Reply