Adding :before property to custom xml

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
lc4466
Propeller Head
Posts: 26
Joined: Tue Jun 18, 2019 10:20 am

Adding :before property to custom xml

Post by lc4466 »

Hi all.

We have some custom xml tags we use for embedded text within our application which I publish from madcap using the Clean XHTML target. However, I'm also working on a way to make this content easier to review, so I'm looking at creating a print CSS format that would convert our custom tags into prefaced strings explaining what each piece of content is. Here's the example:

Content:

Code: Select all

<ContentKey1>
        <help>
            <MadCap:snippetBlock src="..[url]" />
        </help>
</ContentKey1>
CSS:

Code: Select all

help
{
	font-family: Arial;
	font-size: 12pt;
	color: red;	
}

help::before {
  content: "Help Text: ";
  color: blue;
}
The general css making the tag contents red is working fine in my Word output, but the before property does not show up. Any idea where I'm going wrong?
lc4466
Propeller Head
Posts: 26
Joined: Tue Jun 18, 2019 10:20 am

Re: Adding :before property to custom xml

Post by lc4466 »

Just a heads up in case anyone else has run into this - this has been logged as a bug by MadCap.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Adding :before property to custom xml

Post by ChoccieMuffin »

Any updates on this? I'm trying to do something with ::before and can't work out how to do it. If it's a bug I'll stop trying.
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
Post Reply