E-mail List Archives
From: Cheryl D Wise
Date: Jun 27, 2005 12:19PM
- Next message: Andrew Kirkpatrick: "Re: ISO-HTML"
- Previous message: Andrew Kirkpatrick: "Re: ISO-HTML"
- Next message in Thread: Andrew Kirkpatrick: "Re: ISO-HTML"
- Previous message in Thread: Andrew Kirkpatrick: "Re: ISO-HTML"
- View all messages in this Thread
You can still size the height and width of an image in percents or ems in
the HTML, so why would it be better to put in the CSS?
Unless you use a very limited number of image sizes as generic classes it
would still bloat your CSS considerably without providing any benefit over
having the height of width of an image in the html whether it is specified
in ems or pixels is immaterial.
If you know of a tool that will allow one to take a pixel measurement and
convert it into ems without a lot of trial and error I for one would be
happy to know of it.
Cheryl D. Wise
MS FrontPage MVP
http://starttoweb.com - Online instructor led web design training in
FrontPage, Dreamweaver and more!
From: Andrew Kirkpatrick
In fact, if you are using ems for sizing, there is benefit to sizing the
images in the CSS since you can get the image to resize along with the text
when the user increases the font size (if that is desirable on the
particular site or for a particular image).
For a working example:
http://www.htmldog.com/articles/elasticdesign/demo/ (example cited in
Patrick Griffith's alistapart.com article, "Elastic Design".