Skip to main content
Inspiring
March 23, 2016
Answered

Is it possible to import a .css file into a project?

  • March 23, 2016
  • 2 replies
  • 1967 views

We've developed several projects in the months I've been here, and I was thinking that it would be convenient to set up a .css file and store it somewhere, then import it whenever I begin a new project, rather than have to set up a new .css file every time. It would also ensure consistency.

FYI: I'm using RH2015, with WebHelp as output.

thanks,

Lon

This topic has been closed for replies.
Correct answer Peter Grainge

@Jeff. That method is fine for your workflow where you don't care how it looks in the design editor.

@Lon Copy it into the root as Jeff said but select all the topics in the Topic List and right click. Then you can apply the CSS to the topics so that you see the results in the design editor as you work. For new topics, just apply that CSS when you create them.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

2 replies

July 20, 2016

I have tried this solution for a style problem I'm having, and it hasn't worked. I'm hoping someone can help.

I've recently upgraded to RoboHelp 2015. When I open a project created with an earlier version of RoboHelp (RH9) and generate WebHelp output, none of the styles I have defined in my CSS are being applied. When I open a single topic and preview it, the styles appear as they should there, but not in the generated output.

Here's what I've tried so far:

  • In the Topic List pod, select and right-click all topics, select Properties, and choose the correct CSS.
  • Copy the CSS from my backup location and paste it into the root location of my working location, and then repeat the above steps.
  • Create a brand new topic in my project, apply the CSS, and preview it. The styles appear as they should. When I generate the WebHelp output, the styles are not applied to this topic either.
  • All the Master Pages I have applied to my topics seem to be working.
Captiv8r
Legend
July 20, 2016

In RoboHelp 2015, open your Outputs(SSL) pod.

Right-click the Single Source Layout you are using and look at properties. (I believe you said it was WebHelp)

In the Properties sheet, click to expand the Content Categories, then click the default category.

See if you have the "Apply to all" option set.

Cheers... Rick

July 20, 2016

Thanks, Rick, for the quick response.

Yes, I checked that as one of the first things I tried (apologies for leaving out that important information). That is set correctly.

Jeff_Coatsworth
Community Expert
Community Expert
March 23, 2016

Yes, just copy it from your backup location to the project’s root. Then you can use the “Apply to All” setting in the SSL recipe.

Peter Grainge
Community Expert
Peter GraingeCommunity ExpertCorrect answer
Community Expert
March 23, 2016

@Jeff. That method is fine for your workflow where you don't care how it looks in the design editor.

@Lon Copy it into the root as Jeff said but select all the topics in the Topic List and right click. Then you can apply the CSS to the topics so that you see the results in the design editor as you work. For new topics, just apply that CSS when you create them.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Inspiring
March 23, 2016

Thanks, gentlemen ... just what I was looking for.

lr