32.8.3 Specifying px units for graphics sized in pixels

By default, for all HTML and XML outputs except JavaHelp, DITA2Go adds a px suffix to width and height attribute values for images sized in pixels. For example:

<img border="0" src="topview.gif" width="312px" height="203px">

However, a px suffix causes the JavaHelp viewer to show an image as a thumbnail; so for JavaHelp, the default is to omit the suffix. You can direct DITA2Go to omit the px suffix for other output types.

To omit the px suffix from image width and height attribute values:

[Graphics]
; UsePxSuffix = Yes (default except for JavaHelp, include "px" in the
; width and height attributes), or No (JavaHelp default)
UsePxSuffix = No

For DITA XML output, it is usually best to include the px suffix.

Previous Topic:  32.8.2 Adjusting image size for selected graphics

Next Topic:  32.9 Creating image maps for HTML

Parent Topic:  32.8 Scaling images for HTML

Sibling Topics:

32.8.1 Excluding image size attributes from HTML

32.8.2 Adjusting image size for selected graphics

Table of ContentsIndex