• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HTML5 Responsive Help - Accessing the CSS used for publishing

Explorer ,
Feb 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

I need to make some modifications to my Help file's sts file, but when I open it in Notepad it isn't readable. Any ideas how to resolve please?:

Suzanne354505080jq6_0-1707912638911.png

 

 

TOPICS
Responsive HTML5

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 3 Correct answers

Community Expert , Feb 21, 2024 Feb 21, 2024

It sounds like you've moved too many levers at the same time.

The HTML holds the key...not the reference to the stylesheet, but the HTML (in the case of your headings) for the heading itself.

You've spent considerable time on this issue, but you may find that starting over with a new STS and default definitions will help you uniquely format your items, without the layers of CSS formatting that you've applied via default formatting and extra stylesheets, and HTML formatting that's worked its way

...

Votes

Translate

Translate
Community Expert , Feb 22, 2024 Feb 22, 2024

What's the issue...that the topic doesn't display? Check what the bookmark is looking for and what the file name is. I'm betting there is an issue with odd/unexpected characters in the fm filename

Votes

Translate

Translate
Explorer , Feb 22, 2024 Feb 22, 2024

It turns out you can't use brackets or dashes in the Headings. As soon as I removed it the topic displayed! You will both be very relieved to hear that the Help file now looks 100% how I want it. Thank you both so much for your patience with me and getting me to this very happy end point 🙂

 

Votes

Translate

Translate
Community Expert ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

Something like this in your HTML topic where the style isn't seeming to be applied:

Jeff_Coatsworth_0-1708444340799.png

That will tell you which CSS file is being used - or if there are multiple ones (like in this case) - in which case, the rules of CSS say that the last referenced CSS's definitions are the ones appplied. You may be messing around adjusting a CSS that isn't even being used in the HTML. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

Thank you for clarifying. I came to the same conclusion that I wasn't modifying the 'master' .css, but didn't know where else to look.
I can see this in my version:

Suzanne354505080jq6_0-1708444887634.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

I can't see anywhere in the layout.css file where I can put in HTML for the Heading styles - one step closer (maybe?!)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

That's the only CSS that's being referenced in the topics? If so, then you need to either add (copy/paste) the contents of the rhstylemapping.css file you've been editing OR change the CSS that's being used in the FM Publishing Settings to point to rhstylemapping.css instead of layout.css.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 20, 2024 Feb 20, 2024

Copy link to clipboard

Copied

Last week I mentioned that to edit the "base" css, you need to export the rhstylemapping.css.

Specifically,

"If you'd like to directly edit the CSS (which I like to do as well), there's no need to mess with the STS file...just use the Manage CSS option to Export and then after editing, use the corresponding Import option."

Have you done that yet?

One note: The h1 style may not exist in that CSS...you may have to type it in from scratch. See also the screen capture I shared earlier with my h1 definition from an existing project.

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

Not sure whether to laugh or cry! 
I have now tried both approaches. In the latest attempt I used Matt's heading formats to define Headings 1, 2 & 3 in the rhystylemapping.css and imported that into the project. Re-imported only to have the same result.  When I look at the source HTML it refers to a layout.css. I've opened that and pasted in the styles I want to use, but it still refuses to play ball. 

I really am at a loss what to try/do next!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

It sounds like you've moved too many levers at the same time.

The HTML holds the key...not the reference to the stylesheet, but the HTML (in the case of your headings) for the heading itself.

You've spent considerable time on this issue, but you may find that starting over with a new STS and default definitions will help you uniquely format your items, without the layers of CSS formatting that you've applied via default formatting and extra stylesheets, and HTML formatting that's worked its way into your setup.

Once you know more about the mechanics, it should only take about 15 minutes to configure as you like.

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

Hi Matt, I agree. I don't think I can see the woods for the trees now! 
Will try and dig out an unbutchered sts and start from the ground up tomorrow. Thanks for your time and patience

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

The new STS is the easy part...just select New in the screenshot below

MattSTechCommTools_0-1708540255545.png

 

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

If you look at where the layout.css file is located, you'll notice that it's in the Azure_Blue directory, which I'm sure is your output skin. That CSS only formats skin elements, not your content. Only modify it if you need to change how the Azure Blue skin appears. 

Your content will be mostly formatted by

  • the default css, rhstylemapping.css
  • a catch-all css loosely referencing your Fm filename for that content

Other things can impact the formatting, but the odds are quite low, and the HTML would help you figure out if that is the case.

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

This is bonkers, I've created a new project - TOC is displayed but none of the content. What the hecky decky is going on?!!! 

Suzanne354505080jq6_0-1708595011210.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

Scrap the above, resolved that - now the formatting fun begins!

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

You might want to start a new thread to make your questions easier to follow 

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

I took your advice and created a new project, it's now pretty much perfect:

Suzanne354505080jq6_0-1708612318623.png

Just the skin to change, but that's the easy bit 🙂
The one bit I need to fix is this - any ideas please before I leave you in peace?!!!

Suzanne354505080jq6_1-1708612472130.png

The content doesn't use any unusual styles, so once again, I'm a bit baffled.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

Is that the only mis-behaving topic? Or are they all acting that way?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

What's the issue...that the topic doesn't display? Check what the bookmark is looking for and what the file name is. I'm betting there is an issue with odd/unexpected characters in the fm filename

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

It turns out you can't use brackets or dashes in the Headings. As soon as I removed it the topic displayed! You will both be very relieved to hear that the Help file now looks 100% how I want it. Thank you both so much for your patience with me and getting me to this very happy end point 🙂

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

LATEST

Yay! Glad we could get you squared away.

We are here the next time you need us!

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines