Setting the Height and Width of an Inline Image
The height and width of an inline image can be specified. Normally, a Web Browser has to download an image before if allocates space for it on a Web page. This means that if you have a relatively large graphic, everything else has to wait until the image download.
If you set the dimension of the graphic using the Height and Width attribute of the IMG tag, the browser can allocate space for the graphic, and then display the remainder of the page without waiting for the graphic to download completely.
Example:
IMG SCR=”FLOWERS.GIF” WIDTH=”100%”>
This will resize the graphics to fit horizontally within a browser windows, regardless of the screen resolution or the width of the browser. The height of the image will also be resized correspondingly.
If you set the dimension of the graphic using the Height and Width attribute of the IMG tag, the browser can allocate space for the graphic, and then display the remainder of the page without waiting for the graphic to download completely.
Example:
IMG SCR=”FLOWERS.GIF” WIDTH=”100%”>This will resize the graphics to fit horizontally within a browser windows, regardless of the screen resolution or the width of the browser. The height of the image will also be resized correspondingly.
0 comments:
Post a Comment