Specifying Size for Speedier ViewingWhen a browser gets to the (X)HTML code for an image, it must load the image to see how big it is and how much space must be reserved for it. If you specify the image's dimensions, the browser can fill in the text around the image as the image loads, so that your visitors have something to read while waiting for the images. You can either use your browser or your image editing program to get the exact dimensions of your image. To find the size of your image with your browser:
To figure out the size of your image with Photoshop or Photoshop Elements:
Figure 5.14. In Photoshop, Alt or Option Click the document info bar at the bottom of a document window to see the image's properties. (If the document info bar doesn't show, make the window a little wider.)
To specify the size of your image for speedier viewing:
Figure 5.15. If you specify the exact height and width in pixels, the browser won't have to spend time doing it and will display the image more quickly.
Tips
|