Skip to main content
Known Participant
April 11, 2023
Question

Text cut off in responsive HTML5 output

  • April 11, 2023
  • 13 replies
  • 2372 views

Hi All,

I'm using Robohelp 2022 to produce responsive HTML5 output. My problem is that text gets truncated when I try to view the published output on a mobile device. I discovered that the appearance of  Y scroll bars can't be taken for granted, but even when I add an overflow staement to the css for 'body', I still get missing text. Yes, I guess I could shorten the topics a little, but they're not massively long so I'd rather not... Any suggestions would be most welcome. Many thanks

This topic has been closed for replies.

13 replies

Community Expert
April 11, 2023

No need for a copy of your topic css - we don't want to put all the topic styles in to the skin. We just want to make a change to the skin. But as skins in New UI generally don't provide access to their css we need to create a new blank one just for our customisations. Also, I think it's probably better to keep our changes separate from the main css, as it's easier to unpick later if necessary. 🙂

 

Create a blank text file in Notepad or whatever text editor you have, paste in the code I posted and save it with a .css extension. (e.g. customisations.css). In the skin/template you're using there will be a section called "User Assets". Where exactly depends on the skin you're using (for a responsive HTML5 skin, try under Layout). Add the css file you just created there.

 

In future if you need to make tweaks to the skin (not topic content) that aren't available in the UI in Robohelp, put those changes in this stylesheet.

Known Participant
April 12, 2023

Didn't seem to make any difference. Not sure I put the file in the right place though. The nearest I could get was in the project folder under publish/skins/template name - there were no folders at a lower level...

Known Participant
April 12, 2023

Update. This may have actually fixed it. Didn't think to add the asset to the template - not going to work if you don't! Just getting the project onto a quiet corner of our website and we'll be able to verify it 😊

Community Expert
April 11, 2023

If it's just the topic content, not the toc, index or glossary, create a custom css file with the following rule. 

 

body.media-mobile div.topic {
padding-bottom: 3em;
}

 

Then add the css to the User Assets section of the skin and see if it helps.

 

If the toc etc are also a problem, we need to add the definitions for those containers as well. If you're comfortable with css and html you can find the correct rule using the browser developer tools. Otherwise post back and I can post the correct values.

Known Participant
April 11, 2023

Sounds worth a try. But I'm thick. My experience with Robohelp is limited. So, do you mean I add the rule to a copy of  the default css and point the project towards that? Just to be clear, you understand...

Jeff_Coatsworth
Community Expert
Community Expert
April 11, 2023

I've never heard of text being cut off like that - is it happening with the sample project?

Known Participant
April 11, 2023

I don't think I've opened the sample project - where is it hidden? The screenshot I've uploaded was taken from the Microsoft Edge iPhone 12 emulation. I've scolled down as far as I can and you can see it all comes to a halt...

Jeff_Coatsworth
Community Expert
Community Expert
April 11, 2023

It should be in your My Documents > My RH Projects - if it's not there, then a copy can be obtained in the \Program Files\ installation folder - don't try to open it from there as Windows gets testy about accessing that bit of the drive.