Page 1 of 1
Multiple Selectors in a tag
Posted: Thu Feb 25, 2016 5:43 pm
by cruitbuck
Does Flare support multiple selectors in a class, e.g., <p class="body break-before"></p> ?
OK. I remembered a work around <p class="body" id="break-before"></p> got the results I wanted. But still should be able to use and WYSIWYG the multiple selector method.

Re: Multiple Selectors in a tag
Posted: Fri Feb 26, 2016 1:36 am
by NorthEast
You can't add multiple class names to a tag using the interface; you'd have to do that in the text editor.
But beware that if anyone uses the style list to apply a class to the same tag, it'll wipe all the classes you added in the text editor.
More importantly, multiple class names will only work as expected for web-based outputs, but I'm pretty sure they won't work in PDF or Word outputs.
But if you're brave enough to test it out, give it a go!
Re: Multiple Selectors in a tag
Posted: Fri Feb 26, 2016 1:27 pm
by cruitbuck
Thanks for the response. To be sure, I use only notepad ++ for CSS editing. Never been a user of McF's style editor. This is one of several issues I have with Flare (all the crashes and exceptions aside.) Being a 32-bit app is chief among them. A project operates only in a 2.n GB memory space, which causes "out of memory" errors when processing large quantities of files. Then there's the Mysterious Black Box or the MBB as I have dis-affectionately called it.
However, it's still the best usable tool available, having used too many of them to list.
BobB
Dave Lee wrote:You can't add multiple class names to a tag using the interface; you'd have to do that in the text editor.
But beware that if anyone uses the style list to apply a class to the same tag, it'll wipe all the classes you added in the text editor.
More importantly, multiple class names will only work as expected for web-based outputs, but I'm pretty sure they won't work in PDF or Word outputs.
But if you're brave enough to test it out, give it a go!
Re: Multiple Selectors in a tag
Posted: Wed Mar 02, 2016 3:27 pm
by LTinker68
Dave Lee wrote:You can't add multiple class names to a tag using the interface...
Which is rather ironic, considering how much Flare is doing that now in their own styles in the output. Darned annoying that we can't do it. Of course, we still can't create generic classes via the stylesheet editor either and we've been asking for that since v1, I think.
Re: Multiple Selectors in a tag
Posted: Thu Mar 03, 2016 1:11 am
by NorthEast
LTinker68 wrote:Dave Lee wrote:You can't add multiple class names to a tag using the interface...
Which is rather ironic, considering how much Flare is doing that now in their own styles in the output. Darned annoying that we can't do it. Of course, we still can't create generic classes via the stylesheet editor either and we've been asking for that since v1, I think.
Well, Flare's supplied templates for top nav use multiple classes on the home page (for Foundation layout); so to edit that you have to work in the text editor!
Although you can set multiple classes in the text editor, what bothers me is that it's far too easy for someone working in the XML editor to not 'see' them and wipe them out without realising.
Re: Multiple Selectors in a tag
Posted: Thu Mar 03, 2016 2:06 pm
by doc_guy
Point of clarification.
In Dave's suggestion, he is warning you about editing the topic file code (where you add additional selectors to the class attribute), and then later changing the class for that element using the WYSIWYG editor in Flare. Since the XML Editor (WYSIWYG editor) doesn't understand multiple selectors, if you modify the class in the XML Editor, you will only have a single class after being changed. So once you've added multiple selectors in the topic's code view, you need to edit that element in the code view or you will lose the second and subsequent selectors.