Setting height and width attributes for images

After you insert an image in Page view, the editor displays the dimensions of the image in the Properties dialog box. However, these are default values and are not automatically included in the HTML source.

If you resize the image or explicitly set different values, the HEIGHT and WIDTH attributes and their values will be included. Use the following steps if you want the default values included in the HTML source.

StepsTo have HEIGHT and WIDTH attributes added to the HTML source:

  1. In Page view, right-click the image and select Properties from the pop-up menu.

  2. On the Layout tab, change the Height and Width values, or retype them, and click Apply.

    Source view will now show HEIGHT and WIDTH in the IMG element.

NoteIf you know the image dimensions If you know the image dimensions, work in Source view and type the HEIGHT and WIDTH attributes in the IMG element. For example:

<IMG SRC="..." HEIGHT=116 WIDTH=47>