On 30 Sep 2005, at 11:55 am, JJ wrote:

I need to display a map legend. This consists of a vertical list of images with a text explanation (never more than a few words) immediately to the right of each image. What is best way to display the image (26px tall) and then the text (about 12px tall) on the same line, with the text vertically aligned at the middle of each image?

Assuming the following code:
<li><img src="myimage.png" alt="bar"> some text about bar </li>

Then: li img {vertical-align: middle} should do it. (by default, images rest on the baseline).

Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com/>

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to