Haines Brown <brownh@teufel.hartford-hwp.com> wrote:
>I'm in the practice of specifying img width and height in my style
>definitions, although I usually use the actual size of the image. I'm
>reworking the style and it would be convenient to leave image size
>unspecified unless I need to change its dispayed size.
>
>What, if any, are the reasons why an image size should be specified in
>a stylesheet if it will be displayed in its actual size?
Image dimensions should normally be specified in the markup. As always,
CSS is optional and the purpose of specifying dimensions for
embedded/replaced content is to allow the UA to layout a page before the
dependencies have finished downloading, or perhaps the UA is configured
not to load the dependencies at all.
--
Spartanicus
|