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

Formatting lost when viewing or generating layout

Community Beginner ,
Jul 06, 2011 Jul 06, 2011

Copy link to clipboard

Copied

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?

Views

802

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 1 Correct answer

Community Expert , Jul 08, 2011 Jul 08, 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

Votes

Translate

Translate
Community Expert ,
Jul 07, 2011 Jul 07, 2011

Copy link to clipboard

Copied

  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

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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 Beginner ,
Jul 07, 2011 Jul 07, 2011

Copy link to clipboard

Copied

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

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 ,
Jul 07, 2011 Jul 07, 2011

Copy link to clipboard

Copied

No image. You have to insert with the camera icon above where you reply.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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 Beginner ,
Jul 08, 2011 Jul 08, 2011

Copy link to clipboard

Copied

Hi

I was not online and didn't realize the email reply with attachment would not work.

Here's the code:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Originator" content="ImportDoc" />
<meta name="OriginalFile" content="Ops Guide_ePolicy Workflow Overview_for import to robohelp.docx" />
<meta name="MS-HAID" content="Attachments" />
<meta name="template" content="FAQ Template.htt" />
<meta name="generator" content="Adobe RoboHelp 9" />
<title>Adding an Attachment</title>
<link rel="StyleSheet" href="..\FAQ_Style_Sheet.css" type="text/css" />
</head>

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

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 ,
Jul 08, 2011 Jul 08, 2011

Copy link to clipboard

Copied

Try taking out the lines below but I doubt that will be the cause.

<meta name="Originator" content="ImportDoc" />
<meta name="OriginalFile" content="Ops Guide_ePolicy Workflow Overview_for import to robohelp.docx" />

You say the problem occurs between Design Editor and Preview. That I find difficult to understand as Preview is using the same styles as Design Editor.

Use the camera icon and add two screenshots showing us the difference.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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 Beginner ,
Jul 08, 2011 Jul 08, 2011

Copy link to clipboard

Copied

Hi

Here are the requested images.

Karendesign view.JPGpreview.JPG

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 ,
Jul 08, 2011 Jul 08, 2011

Copy link to clipboard

Copied

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

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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 ,
Jul 08, 2011 Jul 08, 2011

Copy link to clipboard

Copied

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

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

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 Beginner ,
Jul 08, 2011 Jul 08, 2011

Copy link to clipboard

Copied

LATEST

Hi

Thanks this worked. I will mark this as answered.

Karen

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
Resources
RoboHelp Documentation
Download Adobe RoboHelp