Re: [css-d] height and width specifications

2011-03-25 Thread Sara Haradhvala
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's

Re: [css-d] height and width specifications

2011-03-25 Thread Jukka K. Korpela
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

[css-d] height and width specifications

2011-03-24 Thread Sara Haradhvala
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? Could specifying the width and height only in the CSS be a reason that an image might load more slowly (in modern browsers)? Thanks, Sara

Re: [css-d] height and width specifications

2011-03-24 Thread G.Sørtun
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,