Depends on the site a bit... If you're drawing the images from a database in
a cms and have the width as available data, then use the width as a local
style. If they're all hard coded, then hard code it in there instead which
is a pain but that's what you get when you hard code websites and may be
when you decide to standardise the image dimensions and alleviate the
problem.
A ColdFusion example may be:
<div class="floatright" style="width: #thumb_width#px;">
<img src="/images/thumbs/#image_filename#"
alt="#caption#"
width="#thumb_width#"
height="#thumb_height#" /><br />
#caption#
</div>
Or you could do much the same using some server side image info tool (a
custom tag in ColdFusion, I'm sure other languages have something similar)
to get the width from the file though performance may suffer on a large
site.
P
> > I wondered about that. The class "photoright" is used
> throughout the
> > site
> > with different size images, therefore to specify a width is
> difficult.
> > When
> > I placed the image I added the height and width with img style and
> > thought
> > that would cover it. What is the usual procedure in this case?
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************