Responsive webhelp: special font-style to elements with attributes outputclass
Posted: Wed Oct 31, 2018 6:43 pm
I am trying to publish some dita topics to responsive webhelp and ran into a problem with the following and similar titles:
<title><msgnum outputclass="mmpdf:fontDef:nofontdef">3.1</msgnum> <msgph conkeyref="display_messages/txt_clean_0" outputclass="mmpdf:fontDef:nofontdef"/></title>
This is what I want:
the <msgnum> and <msgph> elements need to have a special font-style in body text, but no when it's a title. Now the special font-style is standard is both in body text and titles.
When it's a title it should just inherit the style of the title.
I am publishing this content also with MiramoPDF and already added a special outputclass attribute to the element. I could add a second attribute to outputclass nofontdef and then add this to CSS and this works.
.msgnum.nofontdef{
font-style:inherit}
However I would like to avoid to use two different attributes to outputclass. How can I solve this?
I already tried the following, but CSS doesn't recognises the ':' in this case:
.msgnum.mmpdf:fontDef:nofontdef{
font-style:inherit}
Thanks for the help. Any suggestion is welcome.
<title><msgnum outputclass="mmpdf:fontDef:nofontdef">3.1</msgnum> <msgph conkeyref="display_messages/txt_clean_0" outputclass="mmpdf:fontDef:nofontdef"/></title>
This is what I want:
the <msgnum> and <msgph> elements need to have a special font-style in body text, but no when it's a title. Now the special font-style is standard is both in body text and titles.
When it's a title it should just inherit the style of the title.
I am publishing this content also with MiramoPDF and already added a special outputclass attribute to the element. I could add a second attribute to outputclass nofontdef and then add this to CSS and this works.
.msgnum.nofontdef{
font-style:inherit}
However I would like to avoid to use two different attributes to outputclass. How can I solve this?
I already tried the following, but CSS doesn't recognises the ':' in this case:
.msgnum.mmpdf:fontDef:nofontdef{
font-style:inherit}
Thanks for the help. Any suggestion is welcome.