Skip to main content
Known Participant
Oct 1, 2019 8:36 PM UTC
Answered

Styles not applying in Responsive HTML5 output (RH 2019)

I converted one of our large RH 2015 projects to RH 2019. Everything went smoothly up until I tried to generate the Responsive HTML5 output. For some odd reason, the styles aren't applying in the output. I checked the topics to ensure they're linking to the correct CSS file, and they are. Has anyone run into this issue before and resolved it?

This topic is closed to new replies. Start a new post to keep the conversation going.
Peter Grainge
Peter GraingeCorrect answer
Community Expert
Oct 2, 2019 1:43 PM UTC

Open the master page and remove the CSS that is linked to it.

You can leave it like that and the CSS linked to topics will then apply. That's useful if different topics have different CSS linked. Alternatively link the one you want so that if a topic somehow gets the wrong CSS, this will fix it.

 

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

7 replies

Peter Grainge
Community Expert
Peter GraingeCommunity ExpertCorrect answer
Community Expert
Oct 2, 2019 1:43 PM UTC

Open the master page and remove the CSS that is linked to it.

You can leave it like that and the CSS linked to topics will then apply. That's useful if different topics have different CSS linked. Alternatively link the one you want so that if a topic somehow gets the wrong CSS, this will fix it.

 

Translate
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
mnx2Author
Known Participant
Oct 2, 2019 1:46 PM UTC
Thanks for all the help!
Translate
Peter Grainge
Community Expert
Community Expert
Oct 2, 2019 1:09 PM UTC

Have you got a master page specified in the preset? The CSS applied to that could be overriding your topic CSS.

 

Translate
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
mnx2Author
Known Participant
Oct 2, 2019 1:24 PM UTC
Wow, that did the trick! I removed the master page and sure enough, all the styles are working as they should. Is there a way to include the master page? We need one in order to include a copyright on every topic. Otherwise, I'll have to manually go into each topic and add the copyright.
Translate
Jeff_Coatsworth
Community Expert
Community Expert
Oct 1, 2019 8:51 PM UTC

New UI or Classic? All up to date with patch 9?

Translate
mnx2Author
Known Participant
Oct 2, 2019 12:32 PM UTC
New UI and yup, I have the latest patch 9. In the UI, the styles look correct within the topics. The styles go away after I generate the output. It's almost like it can't find the CSS files, which is odd because the topics are linking to the correct ones. I even tried moving the CSS files to be in the same folder as the htm files and that didn't do the trick.
Translate
mnx2Author
Known Participant
Oct 2, 2019 12:38 PM UTC
Well, after a little more investigation, it looks like the Responsive HTML5 output didn't include any of the CSS files. No wonder the styles aren't correct. Any ideas on how to fix this?
Translate