Word Wrap in Expanding Text

This forum is for all Flare issues related to styles, stylesheets and XML.

Word Wrap in Expanding Text

Postby techwrite_BC on Wed Jul 03, 2019 5:22 am

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/flare2017r3/Content/Flare/z/Add-Elements.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.
techwrite_BC
Propeller Head
 
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

Re: Word Wrap in Expanding Text

Postby ChoccieMuffin on Wed Jul 03, 2019 6:36 am

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 2019r1.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
ChoccieMuffin
Senior Propellus Maximus
 
Posts: 2224
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Word Wrap in Expanding Text

Postby techwrite_BC on Wed Jul 03, 2019 8:09 am

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.
techwrite_BC
Propeller Head
 
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

Re: Word Wrap in Expanding Text

Postby Psider on Wed Jul 03, 2019 5:52 pm

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.
Psider
Propellus Maximus
 
Posts: 615
Joined: Wed Jul 06, 2011 1:32 am

Re: Word Wrap in Expanding Text

Postby ChoccieMuffin on Thu Jul 04, 2019 6:24 am

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 2019r1.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
ChoccieMuffin
Senior Propellus Maximus
 
Posts: 2224
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Word Wrap in Expanding Text

Postby Psider on Thu Jul 04, 2019 7:24 am

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.
Psider
Propellus Maximus
 
Posts: 615
Joined: Wed Jul 06, 2011 1:32 am

Re: Word Wrap in Expanding Text

Postby techwrite_BC on Fri Jul 05, 2019 4:53 am

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.
techwrite_BC
Propeller Head
 
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 5 guests