Multiple Selectors in a tag

This forum is for all Flare issues not related to any of the other categories.
Post Reply
cruitbuck
Propeller Head
Posts: 60
Joined: Wed May 06, 2009 8:19 am
Location: dallas
Contact:

Multiple Selectors in a tag

Post 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. :flare:
Buck the Tech Writer
===keep thinking===
Love :flare:
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Multiple Selectors in a tag

Post 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!
cruitbuck
Propeller Head
Posts: 60
Joined: Wed May 06, 2009 8:19 am
Location: dallas
Contact:

Re: Multiple Selectors in a tag

Post 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!
Buck the Tech Writer
===keep thinking===
Love :flare:
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Multiple Selectors in a tag

Post 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.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Multiple Selectors in a tag

Post 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.
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Multiple Selectors in a tag

Post 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.
Paul Pehrson
My Blog

Image
Post Reply