Skip to main content
Inspiring
March 28, 2008
Question

Style sheets in RoboHelp

  • March 28, 2008
  • 4 replies
  • 2788 views
Why does the default style sheet use so many references to Netscape? When you analyze the code, it is definitely made first and foremost for a Netscape browser. I'm hoping this gets updated in the future.

I wish there was a way to reference multiple style sheets within a project. RoboHelp instead takes the 2nd style sheet you reference and makes it the css that is assigned to the entire project.

We have been working on coming up with a way to use a CSS to add text to topics that will only appear when a user goes to print from their browser. It can easily be done with a little CSS action, but RoboHelp kicks and screams and won't have any part of it. If anyone has any great clues or hints let me know. Thanks!!

That's my rant for today....Have a great weekend!!
    This topic has been closed for replies.

    4 replies

    Inspiring
    March 31, 2008
    As an aside, you may be aware that Netscape no longer supports the browser. They have an add-in for Firefox that overlays a Netscape "look and feel."

    Some day we should expect Adobe to remove all that Netscape stuff (it sill has code for NS 4!), and I hope they'll take care of the anomalies in Firefox. Probably I should say, the anomalies in IE, because Ffx is truer to HTML and JS standards, I've heard.

    Harvey
    MergeThis
    Inspiring
    March 31, 2008
    Two separate issues:

    Netscape references
    Instead of "first and foremost" Netscape code, is the idea that the Netscape browser configuration "needs" more code settings than do the other browsers. Netscape, if you were unaware, has traditionally set itself apart from other browsers (perhaps a noble attitude on their part, but definitely a pain for developers and users over the last dozen years).

    Style Sheets
    From XHTML & HTML: The Definitive Guide, C. Musciano & B. Kennedy: "Neither Netscape Navigator nor Internet Explorer support multiple <link>ed style sheets as proposed by the CSS2 standard. Instead, they cascade all the <link>ed style sheets, with rules in later sheets overriding rules in earlier sheets." Further, "Netscape Navigator ignores...@media...but Internet Explorer honors the ...@media at-rules, for both document-level and external sheets."

    Seems like your rants might be better directed to the browser folks, instead of RH.

    You don't say what your output is, but if it's WebHelp, you might be able to accomplish your stated goal by doing some post-processing work on the output. You'd need a good tool such as FAR, which can find & replace multiple lines in your HTM files. You can even set up batch files to run multiple changes to files.


    Good luck,
    Leon
    Inspiring
    March 31, 2008
    Do you know how the @media tag plays in Firefox? We were adding a copyright statement to a snippet, and then referencing the @media tags in the style sheet. It works in IE but not in Firefox. That's where my confusion was...I wasn't sure if the problem was in the snippet or in Firefox.
    Inspiring
    March 28, 2008
    Yea, let me specify. I should have said, I wish we had the ability to use multiple style sheets in one topic.
    Gravenstein
    Inspiring
    March 28, 2008
    You *can* have multiple style sheets in a project. Not for a single topic, though.

    G
    The_Real_Mike73
    Inspiring
    January 3, 2012

    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>