I've had good luck with li img {vertical-align:middle}
This helps if you have an image that is roughly the same height as the text
in the list item. It's not as good if the text begins to wrap.-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Koblentz Sent: Thursday, June 01, 2006 9:45 AM To: [email protected] Subject: Re: [WSG] Horizontal List Issue Jonathan Carter wrote: > That would be the my desired way of doing it, but like I said, the > list is generated dynamically, it's not static HTML. There could be > any number of list items that are displaying any image that is > uploaded by the user, so I wouldn't know what image to make as the > background for each item. What about: HTML: <li><img src="image.gif" alt="Some Text" />This is more text</li> CSS: li {list-style-type:none;text-align:center;float:left;width:100px} li img {display:block;margin:0 auto} --- Regards, Thierry | www.TJKDesign.com ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ****************************************************** ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
