Is there any reason to specify an image's height and width on the
img tag rather than (or in addition to) specifying in the CSS?
Setting and image's width and height in the HTML code, reserves the
space for that element before image gets loaded. I don't think there is
any other advantage, a
thanks! i specify the sizes in the CSS for groupings of images that are all
the same size (e.g. tthumbnails in a carousel or image gallery) and was just
wondering if that is the correct thing to do.
Sara
On Mar 24, 2011, at 9:44 PM, G.Sørtun wrote:
>> Is there any reason to specify an image'
Sara Haradhvala wrote:
thanks! i specify the sizes in the CSS for groupings of images that
are all the same size (e.g. tthumbnails in a carousel or image
gallery) and was just wondering if that is the correct thing to do.
It's OK. You don't even have to specify the dimensions at all, but doin