Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Gravenstein wrote:
You *can* have multiple style sheets in a project. Not for a single topic, though.
G
You write in your other CSS files using javascript to fool RoboHelp:
<script type="text/javascript">
document.write("<link rel='stylesheet' href='../css/number2.css' type='text/css' />");
</script>
Copy link to clipboard
Copied
I wanted to add my bit - Multiple style sheet can be added to single topic but that is possible through HTML view or directly in HTML file (located in the disc).
but multiple style sheet will cascade in the output (means the second one will override the first one ).
Hope this wil help
Regards
Ashish
Copy link to clipboard
Copied
I think I am right in saying it is not so much that the second CSS will override the first entirely but that if the second CSS has a style that is also defined in the first, such as H1, then the definition of duplicated styles will be as in the second CSS.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Peter,
Actually, RH won't let you do it. Give it a try. It will remove one of the references. If you take RoboAsh's suggestion, then the next time you open that HTML file in RH, it will remove one of the references. That's why I offrered my javascript solution, so you can still edit the file in RH.
Copy link to clipboard
Copied
OK I will check later but with the two CSS files applying, what I wrote should still be true.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Hi Real Mike,
which version of RoboHelp did you tried that (I tried with RH 8 and RH 9 and it works with both the versions), Are you linking FrameMaker or Word documents?.
I second Peter - same styles if redefined in second css will get overridden.
Regards
Ashish
Copy link to clipboard
Copied
RH 8.0.2.208
This is an AIR WebHelp project, so no FM or Word.
Steps to reproduce:
Copy link to clipboard
Copied
Tested in RoboHelp 9 and the reference to the second CSS works fine.
I even deleted the topic that had the second CSS as its only CSS when normally RoboHelp would no longer show the CSS in Project Manager. It continued to show so the reference as the second CSS in a topic was clearly known to RoboHelp.
Have you tried this in a brand new project?
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Hi,
Personally I use an @import statement in my main css to import several CSS documents. When you only open the topic in HTML view or with an internal editor, the multiple CSS are retained. But the RH8 WYSIWYG removes them
The downside of @import is that the RH WYSIWYG won't pick up the styles from the imported style sheets.
Greet,
Willam
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied