Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- li class to control images


alt131 - 10:06 am on Sep 23, 2011 (gmt 0)


Hi oldcode - and a belated welcome to WebmasterWorld :)

Like paul I can't see a "problem" with the code - but this:
there a better way to define several different images in a list?
made me wonder if you were looking for a way to apply the images without using classes. If so - and depending on browsers/versions being supported, you may want to check out the css3 structural selectors [w3.org]. Either of nth-of-type (or maybe a combination of the *-child) should allow you to apply different images without needed to class each <li>


Thread source:: http://www.webmasterworld.com/css/4366165.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com