Highlighted

RH9: How do I get a CSS class or id defined style to get applied to Word or PDF output using <div> tags?

Community Beginner ,
Aug 19, 2015

Copy link to clipboard

Copied

I have the following written up in RH:

The code behind it is:

The CSS id "DivNote" is defined:

However, when I generate the printed output, I get this:

OutputImage_DivNote.jpg

The style for the Note is gone.

I created a class="Note"... :

...and applied it to the div with similar results but with some of the styling coming through:

OutputImage_classNote.jpg

The HTML (.chm) output looks fine as does the preview (Ctrl+W) view.

Your help is graciously appreciated.

Steve Roehrig

Adobe Community Professional
Correct answer by Peter Grainge | Adobe Community Professional

In RoboHelp are you mapping to a Word template or just selecting a CSS?

I suspect you are you selecting a CSS and that the solution might be to map to a Word template where you can map the .Note style.

Mapping to Word takes longer to set up the first time but once done you  may find it easier to get the desired results.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Topics

Documentation

Views

332

Likes

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

RH9: How do I get a CSS class or id defined style to get applied to Word or PDF output using <div> tags?

Community Beginner ,
Aug 19, 2015

Copy link to clipboard

Copied

I have the following written up in RH:

The code behind it is:

The CSS id "DivNote" is defined:

However, when I generate the printed output, I get this:

OutputImage_DivNote.jpg

The style for the Note is gone.

I created a class="Note"... :

...and applied it to the div with similar results but with some of the styling coming through:

OutputImage_classNote.jpg

The HTML (.chm) output looks fine as does the preview (Ctrl+W) view.

Your help is graciously appreciated.

Steve Roehrig

Adobe Community Professional
Correct answer by Peter Grainge | Adobe Community Professional

In RoboHelp are you mapping to a Word template or just selecting a CSS?

I suspect you are you selecting a CSS and that the solution might be to map to a Word template where you can map the .Note style.

Mapping to Word takes longer to set up the first time but once done you  may find it easier to get the desired results.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Topics

Documentation

Views

333

Likes

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
Adobe Community Professional ,
Aug 20, 2015

Copy link to clipboard

Copied

In RoboHelp are you mapping to a Word template or just selecting a CSS?

I suspect you are you selecting a CSS and that the solution might be to map to a Word template where you can map the .Note style.

Mapping to Word takes longer to set up the first time but once done you  may find it easier to get the desired results.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

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
Reply
Loading...
SGRoeh LATEST
Community Beginner ,
Aug 28, 2015

Copy link to clipboard

Copied

Hi Peter,

Again you are right on target. This was a pain to get the mapping between the CSS and Word template to work but after trial and error I indeed got it to work. The main issue was getting the styles I wanted to map even to show up in the final printed output dialog in RoboHelp. Eventually they both "appeared" and I was able to map them for the final output.

Thanks again for your help!

Likes

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
Reply
Loading...