Create a style within a drop down hotspot

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
LouisWilkinson1980
Propeller Head
Posts: 16
Joined: Wed Mar 30, 2016 8:01 am

Create a style within a drop down hotspot

Post by LouisWilkinson1980 »

Hi,

I'm new to Madcap Flare so forgive me if this is a stupid question:

I've created a drop down hotspot with a coloured back ground but I would like to create a paragraph style to use within the dropdown with a different background colour for 'Notes' text. I would also like to add a border to the style to help these sesctions stand out. My problem is that I have tried to create this and whenever I use a carriage return to move to the next line the style breaks and starts again on the next line down and the background colour of the drop down is displayed in between.

Does anyone know what I am doing wrong or how I can achieve what I'm trying to?

Many Thanks,
Louis
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Create a style within a drop down hotspot

Post by Nita Beck »

Welcome to the forums! :)

To have what I call an "extended note" with a border, background color, and multiple blocks of content, you need to create a div style that will apply the border and the background color. Call it something like div.ExtendedNote.

To make an extended note, first use your p.Note style (or whatever you call it) to add the first paragraph of the extended note. Then add whatever material will come after that first paragraph but still be part of the "extended note". These might be other paragraphs, lists, images, even tables.

Once you've got all the content blocks in place, you then select them all and, on the Home ribbon, click the Group button (it's about halfway across). A popup window opens to ask you what kind of group you want to make, and you should then select the div.ExtendedNote style (or whatever you called it).

HTH
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
LouisWilkinson1980
Propeller Head
Posts: 16
Joined: Wed Mar 30, 2016 8:01 am

Re: Create a style within a drop down hotspot

Post by LouisWilkinson1980 »

Thanks nita, that has really helped me out and I would have never figured it out on my own!

I want an image to appear within the note but if I add the image to the div.extendednote style the images does not appear and if I add the image to the p.note style it appears on each line of the note text....any ideas?

Also how do I reduce the vertical space between each line to make the paragraph look less separate?
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Create a style within a drop down hotspot

Post by Nita Beck »

Glad to be of help.

So you mean that you have an image associated with the p.Note style? That's fine. Just apply p.Note to only the first block within your extended note. All the other paragraph blocks can be your plain p block (or other p styles, for that matter). They will appear to have the same background color because the color is coming from the styling of the div that contains them. (BTW, that's all a div is: a container of other things).

To adjust the spacing between paragraphs contained within the div, you'll do exactly what you do for paragraphs anywhere else: adjust spacing in your stylesheet NOT through inline formatting. The process is no different that anywhere else. Hope that makes sense.

Back to the image, I'm guessing that you actually can associate the image with the div style rather than the p.Note style. I personally haven't done it, but I'd lay odds that others on the forums have. Anyone else got ideas for Louis about that?
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Post Reply