Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Fri, 6 Jun 2008 04:10:04 -0700,    group: microsoft.public.vstudio.helpauthoring        back       


CHM displays inconsistent CSS   
I've just built a .chm file using the help compiler v1.4.  My source HTMLs 
use a style sheet contained in a subfolder.  The display of the help pages 
doesn't use my CSS when clicked from the TOC (but they do use the CSS if 
selected via a search result).

I've tried clearing my temporary files as per the wiki help FAQ page, but it 
hasn't made any difference.

I'm sure it's something obvious!

TIA

K
date: Fri, 6 Jun 2008 04:10:04 -0700   author:   KennyT

Re: CHM displays inconsistent CSS   
Hello Kenny,

"KennyT"  schrieb im Newsbeitrag 
news:EDD32547-0D33-4642-9D3B-E377E76814B5@microsoft.com...
> I've just built a .chm file using the help compiler v1.4.  My source HTMLs
> use a style sheet contained in a subfolder.  The display of the help pages
> doesn't use my CSS when clicked from the TOC (but they do use the CSS if
> selected via a search result).

some additional information for you and add your CSS file to the [FILES] 
section like described below.

The help compiler tries to pull into the .chm all local files that are 
*directly* referenced in the HTML files, whether they be other HTML files, 
graphics, cascading style sheets, etc. Make sure your script file and CSS is 
compiled into your CHM too.

To make extra certain that all graphics (and Cascading Style Sheets like 
*.css) are compiled into the .chm, you can list them in the [FILES] section 
of your project (.hhp) file. With HTML Help Workshop, the procedure is as 
follows:

1) Click the Add/Remove Topic Files button on the Project tab.
2) Click Add.
3) In the File Name field, type *.gif (or *.jpg).
4) Click Open, and then select the graphics files to add.

If you want, you can use wildcards in the [FILES] section to specify every 
file in a given directory. For example:

[FILES]
html\*.htm
images\*.gif
css\foobar.css

Of course, you'd have to edit the project file in a text editor such as 
Notepad to do this and compile again.

-- 
HTH
Best regards
Ulrich Kulle
Microsoft MVP - Help
***********************************
http://www.help-info.de
***********************************
date: Fri, 6 Jun 2008 15:25:20 +0200   author:   Ulrich Kulle [MVP] infoREMOVE##

Re: CHM displays inconsistent CSS   
"Ulrich Kulle [MVP]" wrote:

> Hello Kenny,
> 
> "KennyT"  schrieb im Newsbeitrag 
> news:EDD32547-0D33-4642-9D3B-E377E76814B5@microsoft.com...
> > I've just built a .chm file using the help compiler v1.4.  My source HTMLs
> > use a style sheet contained in a subfolder.  The display of the help pages
> > doesn't use my CSS when clicked from the TOC (but they do use the CSS if
> > selected via a search result).
> 
> some additional information for you and add your CSS file to the [FILES] 
> section like described below.
> 
> The help compiler tries to pull into the .chm all local files that are 
> *directly* referenced in the HTML files, whether they be other HTML files, 
> graphics, cascading style sheets, etc. Make sure your script file and CSS is 
> compiled into your CHM too.
> 
> To make extra certain that all graphics (and Cascading Style Sheets like 
> *.css) are compiled into the .chm, you can list them in the [FILES] section 
> of your project (.hhp) file. With HTML Help Workshop, the procedure is as 
> follows:
> 
> 1) Click the Add/Remove Topic Files button on the Project tab.
> 2) Click Add.
> 3) In the File Name field, type *.gif (or *.jpg).
> 4) Click Open, and then select the graphics files to add.
> 
> If you want, you can use wildcards in the [FILES] section to specify every 
> file in a given directory. For example:
> 
> [FILES]
> html\*.htm
> images\*.gif
> css\foobar.css
> 
> Of course, you'd have to edit the project file in a text editor such as 
> Notepad to do this and compile again.
> 
> -- 
> HTH
> Best regards
> Ulrich Kulle
> Microsoft MVP - Help
> ***********************************
> http://www.help-info.de
> ***********************************
> 
> 
> 
> 
Thank you :) I think the problem was actually that I was placing my hhp/chm 
files in a different folder from where the html files were stored!  Looking 
at the HHP file in notepad highlighted this!  Once I moved them to be in the 
parent folder, they all started to work.

K
date: Fri, 6 Jun 2008 07:55:04 -0700   author:   KennyT

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us