Adding :before property to custom xml

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

Adding :before property to custom xml

Postby lc4466 on Fri Apr 16, 2021 8:44 am

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: 12
Joined: Tue Jun 18, 2019 10:20 am

Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 12 guests