> Lists will be generated from a database. I can't set a class for each > li or image. > > That's the biggest problem.
Want a rough-as-guts solution? Write your styles into the li element on the fly from your database. Look up the image name and it height. These two bits of info can be used to general inline styles - just for the critical info. The name of the file is drawn in the style for the background image. The height of the image is divided by 2 and this figure is used as padding on top and bottom of the list. The output (completely dynamically driven) could then be something like: <li style="background: url(http://play.cpea.ro/css/sistem.gif); padding-top: 20px; padding-bottom: 20px;"> As I said... Rough :) Russ ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
