Skip to main content
Inspiring
July 6, 2011
Answered

Formatting lost when viewing or generating layout

  • July 6, 2011
  • 1 reply
  • 930 views

I have a few topic pages which use the same CSS throughout the entire project.

It seems when I copy text from Word the formatting becomes embedded? and when I apply the correct style the format does not change.

OR

The format looks fine in design view but when previewed or generated the font formatting is changed.

I don't know enough about HTML code to see if there's something incorrect.

<body>
<?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"
        language="JavaScript1.2"></script><?rh-script_end ?>
<h1>Attachments</h1>

The word attachments in the design view is in the correct format for Heading 1 - purple in color - when previewed or generated the font color changes to black.

Any ideas?

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

    You say you have created the same result in a new project. Please zip up that project and send it to me. See the Contact page on my site.


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge


    In your CSS file several of the styles have the colour incorrectly defined. For Heading 1 the colour is defined as

    color: 5A2D7F;

    It should be

    color: #5A2D7F;

    Add the hash sign to your CSS for any style where it is missing and you should be OK.


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

    1 reply

    Peter Grainge
    Community Expert
    Community Expert
    July 7, 2011
    1. Above the body text do you see anything that might be related to styles?
    2. Using the same CSS in a new single topic project, do you get the same result if you paste text in?
    3. In that new project, do you get the problem if you import a topic from your real project?


    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.
    kvoyceyAuthor
    Inspiring
    July 7, 2011

    Hi

    1. Image of top code attached.

    2. Same result in new project new topic simply using the default text once format is applied.

    3. Copied topic from original and same problem occurs.

    Seems to be only heading 1 - the rest of the formatting is ok.

    Thanks

    Karen Voycey

    kvoyceyAuthor
    Inspiring
    July 8, 2011

    In your CSS file several of the styles have the colour incorrectly defined. For Heading 1 the colour is defined as

    color: 5A2D7F;

    It should be

    color: #5A2D7F;

    Add the hash sign to your CSS for any style where it is missing and you should be OK.


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge


    Hi

    Thanks this worked. I will mark this as answered.

    Karen