PDA

View Full Version : Flaw In HTML Export Templates


JohnTaber
Feb 12th, '03, 02:16 PM
Hi Derek and Dan,

I think I may have found a small bug in all of the HTML export templates. Instead of using "Black" for the font color it uses the browsers "Default Color". This default color is pulled from the Windows settings on the machine somehow as on my rig it is taking the color from my Theme Pack. The templates need to be tweaked so that they always output black for the font color.

Note that I tried to make this adjustment myself and I screwed up the template. I'm not sure what I did wrong. :(

Can you guys help?

Simon
Feb 12th, '03, 02:19 PM
That's not really a bug...that's intentional in most of the HTML templates.

The "tweak" is easy enough, but you need to know HTML/CSS.

The easiest way to adjust it is to define a style section at the beginning of the export document which defines the color (and background color) desired for the BODY section.

Something like this:

<style type="text/css">
BODY {
color: black;
background: white;
}
</style>

JohnTaber
Feb 12th, '03, 02:31 PM
Got it! Just looked at HTML Goodies to refresh my memory...

I changed the body line to look like this...
<body bgcolor="#FFFFFF" text="#000000">

And it all worked grand. ;)