Adding images
You add images to a card using the img element. Images must be in WBMP format. You can convert an image to WBMP format by adding a Smart Object to an HTML document in GoLive. See Adding Images and Media.
To add an image to a card: Drag the Img icon from the WML Elements set in the Objects palette into the document window. Release the mouse button when the pointer is in the desired location in a paragraph, or place the img element in an anchor element to create a linked image.
To specify image attributes: - Select an img element in the document window.
- In the Img Inspector, set the following attributes:
- alt to specify alternative text for the image. A WML browser displays alternative text when it does not support images or when the image file cannot be found.
- src to specify a URL for the image file.
- Set the following optional attributes in the Img Inspector:
- localsrc to specify an image file that is local to (saved on) the wireless device. This image file takes precedence over the image file specified by the src attribute.
- vspace and hspace to specify the amount of white space that you want a WML browser to insert around the image in pixels or a percentage. Some browsers may ignore this attribute.
- align to specify how the image is aligned within a paragraph. Choose bottom to align the bottom of the image with the current line. Choose middle to center the image on the current line. Choose top to align the top of the image with the current line. Some browsers may ignore these attributes.
- height and width to specify the dimensions of the image in pixels or a percentage. Some browsers may ignore these attributes.
- xml:lang to specify the language of the element or its attributes.
|